Give terminal options a proper interface

This commit is contained in:
Daniel Imms
2017-08-05 02:57:34 -07:00
parent da50e33aa8
commit 0b5ff47cc0
3 changed files with 31 additions and 11 deletions
+21
View File
@@ -50,6 +50,27 @@ export interface ITerminal {
showCursor(): void;
}
export interface ITerminalOptions {
cancelEvents?: boolean;
colors?: string[];
cols?: number;
convertEol?: boolean;
cursorBlink?: boolean;
cursorStyle?: string;
debug?: boolean;
disableStdin?: boolean;
geometry?: [number, number];
handler?: (data: string) => void;
popOnBell?: boolean;
rows?: number;
screenKeys?: boolean;
scrollback?: number;
tabStopWidth?: number;
termName?: string;
useFlowControl?: boolean;
visualBell?: boolean;
}
export interface IBuffer {
lines: ICircularList<[number, string, number][]>;
ydisp: number;