1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-24 19:13:31 +03:00

made conpty optional

This commit is contained in:
Eugene Pankov 2018-12-21 21:05:59 +01:00
parent 2ca6135c06
commit 91bba042b5
4 changed files with 18 additions and 3 deletions

View File

@ -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

View File

@ -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,

View File

@ -52,6 +52,7 @@ export class TerminalConfigProvider extends ConfigProvider {
customColorSchemes: [],
environment: {},
profiles: [],
useConPTY: true,
},
}

View File

@ -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