scroll/src/common/termios.ts

26 lines
426 B
JavaScript
Raw Normal View History

2023-11-01 14:00:40 -04:00
export const STDIN_FILENO = 0;
export const STOUT_FILENO = 1;
export const TCSANOW = 0;
export const TCSAFLUSH = 2;
export const TERMIOS_SIZE = 60;
/**
* Common interface for setting Termios properties
*/
export interface ITermios {
/**
* Are we currently in raw mode?
*/
inRawMode: boolean;
/**
* Toggles on raw mode
*/
enableRawMode(): void;
/**
* Restores canonical mode
*/
disableRawMode(): void;
}