tabby/tabby-terminal/src/components/terminalSettingsTab.component.ts
2021-12-08 19:54:26 +01:00

26 lines
723 B
TypeScript

import { Component, HostBinding } from '@angular/core'
import { ConfigService, HostAppService, Platform, PlatformService, altKeyName, metaKeyName } from 'tabby-core'
/** @hidden */
@Component({
template: require('./terminalSettingsTab.component.pug'),
})
export class TerminalSettingsTabComponent {
Platform = Platform
altKeyName = altKeyName
metaKeyName = metaKeyName
@HostBinding('class.content-box') true
constructor (
public config: ConfigService,
public hostApp: HostAppService,
private platform: PlatformService,
) { }
openWSLVolumeMixer (): void {
this.platform.openPath('sndvol.exe')
this.platform.exec('wsl.exe', ['tput', 'bel'])
}
}