Files
terminal-lab/xterminal/source/output/interface.ts
douboer@gmail.com 3b7c1d558a first commit
2026-03-03 13:23:14 +08:00

35 lines
648 B
TypeScript

/**
* Interface: Output Component
*/
export interface IOutputInterface {
/**
* Container element housing the console box
*/
el: HTMLDivElement;
/**
* Inbuilt callback function for every write operation
*/
onoutput?: () => void;
/**
* Output data to the console
*/
write(data: string, callback?: () => void): void;
/**
* Safely output data to the console
*/
writeSafe(data: string, callback?: () => void): void;
/**
* Clear the console
*/
clear(): void;
/**
* Remove the element containing the previous output
*/
clearLast(): void;
}