mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-13 03:44:34 +00:00
moved more electron stuff out of tabby-local
This commit is contained in:
@@ -59,3 +59,22 @@ export abstract class UACService {
|
||||
|
||||
abstract patchSessionOptionsForUAC (sessionOptions: SessionOptions): SessionOptions
|
||||
}
|
||||
|
||||
export abstract class PTYProxy {
|
||||
abstract getID (): string
|
||||
abstract getPID (): Promise<number>
|
||||
abstract resize (columns: number, rows: number): Promise<void>
|
||||
abstract write (data: Buffer): Promise<void>
|
||||
abstract kill (signal?: string): Promise<void>
|
||||
abstract ackData (length: number): void
|
||||
abstract subscribe (event: string, handler: (..._: any[]) => void): void
|
||||
abstract unsubscribeAll (): void
|
||||
abstract getChildProcesses (): Promise<ChildProcess[]>
|
||||
abstract getTruePID (): Promise<number>
|
||||
abstract getWorkingDirectory (): Promise<string|null>
|
||||
}
|
||||
|
||||
export abstract class PTYInterface {
|
||||
abstract spawn (...options: any[]): Promise<PTYProxy>
|
||||
abstract restore (id: string): Promise<PTYProxy|null>
|
||||
}
|
||||
|
Reference in New Issue
Block a user