|
ze
|
Raw terminal mode helpers and key decoding. More...
#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/ioctl.h>#include <unistd.h>#include "terminal.h"
Functions | |
| void | die (const char *s) |
| Abort the program after resetting the screen and printing perror. | |
| void | disableRawMode (void) |
| Restore cooked terminal mode. | |
| void | enableRawMode (void) |
| Enable raw terminal mode and register an atexit handler. | |
| char | editorReadKey (void) |
Read a key, decoding escape sequences into editorKey values. | |
| int | getCursorPosition (int *rows, int *cols) |
| Query the terminal for the current cursor position. | |
| int | getWindowSize (int *rows, int *cols) |
| Obtain terminal window size in rows and columns. | |
Variables | |
| struct editorConfig | E |
Raw terminal mode helpers and key decoding.