mirror of
https://github.com/eugeny/tabby
synced 2025-12-12 18:55:47 +00:00
done
This commit is contained in:
40
terminus-terminal/src/api.ts
Normal file
40
terminus-terminal/src/api.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import { TerminalTabComponent } from './components/terminalTab'
|
||||
export { TerminalTabComponent }
|
||||
|
||||
export abstract class TerminalDecorator {
|
||||
attach (_terminal: TerminalTabComponent): void { }
|
||||
detach (_terminal: TerminalTabComponent): void { }
|
||||
}
|
||||
|
||||
export interface ResizeEvent {
|
||||
width: number
|
||||
height: number
|
||||
}
|
||||
|
||||
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>
|
||||
}
|
||||
|
||||
export interface ITerminalColorScheme {
|
||||
name: string
|
||||
foreground: string
|
||||
background: string
|
||||
cursor: string
|
||||
colors: string[]
|
||||
}
|
||||
|
||||
export abstract class TerminalColorSchemeProvider {
|
||||
abstract async getSchemes (): Promise<ITerminalColorScheme[]>
|
||||
}
|
||||
Reference in New Issue
Block a user