tabby/app/src/terminal/api.ts

20 lines
543 B
TypeScript
Raw Normal View History

2017-03-25 17:12:43 +00:00
export abstract class TerminalDecorator {
abstract decorate (terminal): void
}
2017-03-25 20:00:16 +00:00
export interface SessionOptions {
name?: string,
command?: string,
args?: string[],
cwd?: string,
env?: any,
recoveryId?: string
2017-04-02 15:33:55 +00:00
recoveredTruePID?: number
2017-03-25 20:00:16 +00:00
}
export abstract class SessionPersistenceProvider {
2017-04-02 15:33:55 +00:00
abstract async attachSession (recoveryId: any): Promise<SessionOptions>
abstract async startSession (options: SessionOptions): Promise<any>
2017-03-25 20:00:16 +00:00
abstract async terminateSession (recoveryId: string): Promise<void>
}