tabby/app/src/terminal/api.ts
Eugene Pankov 2846637815 .
2017-04-02 17:33:55 +02:00

19 lines
543 B
TypeScript

export abstract class TerminalDecorator {
abstract decorate (terminal): void
}
export interface SessionOptions {
name?: string,
command?: string,
args?: string[],
cwd?: string,
env?: any,
recoveryId?: string
recoveredTruePID?: number
}
export abstract class SessionPersistenceProvider {
abstract async attachSession (recoveryId: any): Promise<SessionOptions>
abstract async startSession (options: SessionOptions): Promise<any>
abstract async terminateSession (recoveryId: string): Promise<void>
}