first commit
This commit is contained in:
28
xterminal/source/interface.ts
Normal file
28
xterminal/source/interface.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import type { IInputInterface } from "./input/interface";
|
||||
import type { IOutputInterface } from "./output/interface";
|
||||
import type { IHistory } from "./history/interface";
|
||||
|
||||
/**
|
||||
* Terminal State
|
||||
*/
|
||||
export type ITerminalState = {
|
||||
/**
|
||||
* Input component for the terminal
|
||||
*/
|
||||
input: IInputInterface;
|
||||
|
||||
/**
|
||||
* Output component for the terminal
|
||||
*/
|
||||
output: IOutputInterface;
|
||||
|
||||
/**
|
||||
* History: store of inputs
|
||||
*/
|
||||
history: IHistory;
|
||||
|
||||
/**
|
||||
* Autocomplete function invoked on TAB key
|
||||
*/
|
||||
completer?: (data: string) => string;
|
||||
};
|
||||
Reference in New Issue
Block a user