mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-24 13:29:55 +00:00
27 lines
745 B
TypeScript
27 lines
745 B
TypeScript
import { Component } from '@angular/core'
|
|
import { ConfigService, ElectronService } from 'terminus-core'
|
|
import { TerminalService } from '../services/terminal.service'
|
|
|
|
/** @hidden */
|
|
@Component({
|
|
template: require('./terminalSettingsTab.component.pug'),
|
|
})
|
|
export class TerminalSettingsTabComponent {
|
|
constructor (
|
|
public config: ConfigService,
|
|
private electron: ElectronService,
|
|
private terminal: TerminalService,
|
|
) { }
|
|
|
|
openWSLVolumeMixer () {
|
|
this.electron.shell.openItem('sndvol.exe')
|
|
this.terminal.openTab({
|
|
name: null,
|
|
sessionOptions: {
|
|
command: 'wsl.exe',
|
|
args: ['tput', 'bel'],
|
|
},
|
|
}, null, true)
|
|
}
|
|
}
|