mirror of
https://github.com/Eugeny/tabby
synced 2025-01-10 12:19:19 +00:00
54 lines
1.1 KiB
TypeScript
54 lines
1.1 KiB
TypeScript
import { TerminalTabComponent } from './components/terminalTab.component'
|
|
|
|
export abstract class TerminalDecorator {
|
|
// tslint:disable-next-line no-empty
|
|
attach (_terminal: TerminalTabComponent): void { }
|
|
// tslint:disable-next-line no-empty
|
|
detach (_terminal: TerminalTabComponent): void { }
|
|
}
|
|
|
|
export interface ResizeEvent {
|
|
columns: number
|
|
rows: number
|
|
}
|
|
|
|
export interface SessionOptions {
|
|
name?: string
|
|
command?: string
|
|
args?: string[]
|
|
cwd?: string
|
|
env?: any
|
|
width?: number
|
|
height?: number
|
|
pauseAfterExit?: boolean
|
|
}
|
|
|
|
export interface Profile {
|
|
name: string,
|
|
sessionOptions: SessionOptions,
|
|
}
|
|
|
|
export interface ITerminalColorScheme {
|
|
name: string
|
|
foreground: string
|
|
background: string
|
|
cursor: string
|
|
colors: string[]
|
|
}
|
|
|
|
export abstract class TerminalColorSchemeProvider {
|
|
abstract async getSchemes (): Promise<ITerminalColorScheme[]>
|
|
}
|
|
|
|
export interface IShell {
|
|
id: string
|
|
name?: string
|
|
command: string
|
|
args?: string[]
|
|
env?: any
|
|
fsBase?: string
|
|
}
|
|
|
|
export abstract class ShellProvider {
|
|
abstract async provide (): Promise<IShell[]>
|
|
}
|