12void die(
const char *s);
void enableRawMode(void)
Enable raw terminal mode and register an atexit handler.
Definition terminal.c:57
int getCursorPosition(int *rows, int *cols)
Query the terminal for the current cursor position.
Definition terminal.c:151
char editorReadKey(void)
Read a key, decoding escape sequences into editorKey values.
Definition terminal.c:85
int getWindowSize(int *rows, int *cols)
Obtain terminal window size in rows and columns.
Definition terminal.c:187
void die(const char *s)
Abort the program after resetting the screen and printing perror.
Definition terminal.c:26
void disableRawMode(void)
Restore cooked terminal mode.
Definition terminal.c:41
Core editor types, macros, and global state.