mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 17:16:03 +00:00
This commit is contained in:
@@ -25,6 +25,9 @@ h3.mb-3 Shell
|
|||||||
(ngModelChange)='config.save()'
|
(ngModelChange)='config.save()'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
.alert.alert-info.d-flex.align-items-center(*ngIf='config.store.terminal.useConPTY && isConPTYAvailable && !isConPTYStable')
|
||||||
|
.mr-auto Windows 10 build 18309 or above is recommended for ConPTY
|
||||||
|
|
||||||
.alert.alert-info.d-flex.align-items-center(*ngIf='config.store.terminal.shell.startsWith("wsl") && (config.store.terminal.frontend != "hterm" || !config.store.terminal.useConPTY)')
|
.alert.alert-info.d-flex.align-items-center(*ngIf='config.store.terminal.shell.startsWith("wsl") && (config.store.terminal.frontend != "hterm" || !config.store.terminal.useConPTY)')
|
||||||
.mr-auto WSL terminal only supports TrueColor with ConPTY and the hterm frontend
|
.mr-auto WSL terminal only supports TrueColor with ConPTY and the hterm frontend
|
||||||
|
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
import * as os from 'os'
|
||||||
import { Component } from '@angular/core'
|
import { Component } from '@angular/core'
|
||||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
||||||
import { Subscription } from 'rxjs'
|
import { Subscription } from 'rxjs'
|
||||||
@@ -15,6 +16,7 @@ export class ShellSettingsTabComponent {
|
|||||||
profiles: Profile[] = []
|
profiles: Profile[] = []
|
||||||
Platform = Platform
|
Platform = Platform
|
||||||
isConPTYAvailable: boolean
|
isConPTYAvailable: boolean
|
||||||
|
isConPTYStable: boolean
|
||||||
private configSubscription: Subscription
|
private configSubscription: Subscription
|
||||||
|
|
||||||
constructor (
|
constructor (
|
||||||
@@ -31,6 +33,9 @@ export class ShellSettingsTabComponent {
|
|||||||
})
|
})
|
||||||
this.reload()
|
this.reload()
|
||||||
this.isConPTYAvailable = uac.isAvailable
|
this.isConPTYAvailable = uac.isAvailable
|
||||||
|
this.isConPTYStable = hostApp.platform === Platform.Windows
|
||||||
|
&& parseFloat(os.release()) >= 10
|
||||||
|
&& parseInt(os.release().split('.')[2]) >= 18309
|
||||||
}
|
}
|
||||||
|
|
||||||
async ngOnInit () {
|
async ngOnInit () {
|
||||||
|
@@ -118,7 +118,7 @@ export class Session extends BaseSession {
|
|||||||
rows: options.height || 30,
|
rows: options.height || 30,
|
||||||
cwd,
|
cwd,
|
||||||
env: env,
|
env: env,
|
||||||
experimentalUseConpty: this.config.store.terminal.useConPTY,
|
experimentalUseConpty: this.config.store.terminal.useConPTY && 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
this.guessedCWD = cwd
|
this.guessedCWD = cwd
|
||||||
|
Reference in New Issue
Block a user