2017-04-04 15:39:36 +00:00
|
|
|
import { TerminalTabComponent } from './components/terminalTab'
|
|
|
|
export { TerminalTabComponent } from './components/terminalTab'
|
|
|
|
|
2017-03-25 17:12:43 +00:00
|
|
|
export abstract class TerminalDecorator {
|
2017-04-04 15:39:36 +00:00
|
|
|
attach (_terminal: TerminalTabComponent): void { }
|
|
|
|
detach (_terminal: TerminalTabComponent): void { }
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ResizeEvent {
|
|
|
|
width: number
|
|
|
|
height: number
|
2017-03-25 17:12:43 +00:00
|
|
|
}
|
2017-03-25 20:00:16 +00:00
|
|
|
|
|
|
|
export interface SessionOptions {
|
2017-04-04 15:39:36 +00:00
|
|
|
name?: string
|
|
|
|
command?: string
|
|
|
|
args?: string[]
|
|
|
|
cwd?: string
|
|
|
|
env?: any
|
2017-03-25 20:00:16 +00:00
|
|
|
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>
|
|
|
|
}
|