mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-23 12:59:54 +00:00
31 lines
698 B
TypeScript
31 lines
698 B
TypeScript
import { Profile } from 'tabby-core'
|
|
|
|
export interface ResizeEvent {
|
|
columns: number
|
|
rows: number
|
|
}
|
|
|
|
export interface TerminalColorScheme {
|
|
name: string
|
|
foreground: string
|
|
background: string
|
|
cursor: string
|
|
colors: string[]
|
|
selection?: string
|
|
selectionForeground?: string
|
|
cursorAccent?: string
|
|
}
|
|
|
|
export interface BaseTerminalProfile extends Profile {
|
|
terminalColorScheme?: TerminalColorScheme
|
|
}
|
|
|
|
export interface Reconnectable {
|
|
reconnect: () => Promise<void>;
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
export function isReconnectable (object: any): object is Reconnectable {
|
|
return 'reconnect' in object
|
|
}
|