mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-24 06:04:04 +03:00
made conpty optional
This commit is contained in:
parent
2ca6135c06
commit
91bba042b5
@ -14,8 +14,19 @@ h3.mb-3 Shell
|
||||
[ngValue]='shell.id'
|
||||
) {{shell.name}}
|
||||
|
||||
.alert.alert-info.d-flex.align-items-center(*ngIf='config.store.terminal.shell.startsWith("wsl") && config.store.terminal.frontend != "xterm"')
|
||||
.mr-auto WSL terminal only supports TrueColor with the xterm frontend
|
||||
|
||||
.form-line(*ngIf='hostApp.platform === Platform.Windows')
|
||||
.header
|
||||
.title Use ConPTY
|
||||
.description Enables the experimental Windows ConPTY API
|
||||
|
||||
toggle(
|
||||
[(ngModel)]='config.store.terminal.useConPTY',
|
||||
(ngModelChange)='config.save()'
|
||||
)
|
||||
|
||||
.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 xterm frontend
|
||||
|
||||
.form-line(*ngIf='config.store.terminal.shell == "custom"')
|
||||
.header
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Component } from '@angular/core'
|
||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { ConfigService, ElectronService } from 'terminus-core'
|
||||
import { ConfigService, ElectronService, HostAppService, Platform } from 'terminus-core'
|
||||
import { EditProfileModalComponent } from './editProfileModal.component'
|
||||
import { IShell, Profile } from '../api'
|
||||
import { TerminalService } from '../services/terminal.service'
|
||||
@ -11,9 +11,11 @@ import { TerminalService } from '../services/terminal.service'
|
||||
export class ShellSettingsTabComponent {
|
||||
shells: IShell[] = []
|
||||
profiles: Profile[] = []
|
||||
Platform = Platform
|
||||
|
||||
constructor (
|
||||
public config: ConfigService,
|
||||
public hostApp: HostAppService,
|
||||
private electron: ElectronService,
|
||||
private terminalService: TerminalService,
|
||||
private ngbModal: NgbModal,
|
||||
|
@ -52,6 +52,7 @@ export class TerminalConfigProvider extends ConfigProvider {
|
||||
customColorSchemes: [],
|
||||
environment: {},
|
||||
profiles: [],
|
||||
useConPTY: true,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -108,6 +108,7 @@ export class Session extends BaseSession {
|
||||
rows: options.height || 30,
|
||||
cwd: options.cwd || process.env.HOME,
|
||||
env: env,
|
||||
experimentalUseConpty: this.config.store.terminal.useConPTY,
|
||||
})
|
||||
|
||||
this.truePID = (this.pty as any).pid
|
||||
|
Loading…
Reference in New Issue
Block a user