mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 09:06:03 +00:00
made conpty optional
This commit is contained in:
@@ -14,8 +14,19 @@ h3.mb-3 Shell
|
|||||||
[ngValue]='shell.id'
|
[ngValue]='shell.id'
|
||||||
) {{shell.name}}
|
) {{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"')
|
.form-line(*ngIf='config.store.terminal.shell == "custom"')
|
||||||
.header
|
.header
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
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 { ConfigService, ElectronService } from 'terminus-core'
|
import { ConfigService, ElectronService, HostAppService, Platform } from 'terminus-core'
|
||||||
import { EditProfileModalComponent } from './editProfileModal.component'
|
import { EditProfileModalComponent } from './editProfileModal.component'
|
||||||
import { IShell, Profile } from '../api'
|
import { IShell, Profile } from '../api'
|
||||||
import { TerminalService } from '../services/terminal.service'
|
import { TerminalService } from '../services/terminal.service'
|
||||||
@@ -11,9 +11,11 @@ import { TerminalService } from '../services/terminal.service'
|
|||||||
export class ShellSettingsTabComponent {
|
export class ShellSettingsTabComponent {
|
||||||
shells: IShell[] = []
|
shells: IShell[] = []
|
||||||
profiles: Profile[] = []
|
profiles: Profile[] = []
|
||||||
|
Platform = Platform
|
||||||
|
|
||||||
constructor (
|
constructor (
|
||||||
public config: ConfigService,
|
public config: ConfigService,
|
||||||
|
public hostApp: HostAppService,
|
||||||
private electron: ElectronService,
|
private electron: ElectronService,
|
||||||
private terminalService: TerminalService,
|
private terminalService: TerminalService,
|
||||||
private ngbModal: NgbModal,
|
private ngbModal: NgbModal,
|
||||||
|
@@ -52,6 +52,7 @@ export class TerminalConfigProvider extends ConfigProvider {
|
|||||||
customColorSchemes: [],
|
customColorSchemes: [],
|
||||||
environment: {},
|
environment: {},
|
||||||
profiles: [],
|
profiles: [],
|
||||||
|
useConPTY: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -108,6 +108,7 @@ export class Session extends BaseSession {
|
|||||||
rows: options.height || 30,
|
rows: options.height || 30,
|
||||||
cwd: options.cwd || process.env.HOME,
|
cwd: options.cwd || process.env.HOME,
|
||||||
env: env,
|
env: env,
|
||||||
|
experimentalUseConpty: this.config.store.terminal.useConPTY,
|
||||||
})
|
})
|
||||||
|
|
||||||
this.truePID = (this.pty as any).pid
|
this.truePID = (this.pty as any).pid
|
||||||
|
Reference in New Issue
Block a user