ze
Loading...
Searching...
No Matches
Functions
terminal.h File Reference

Raw terminal mode, key reading, and screen size utilities. More...

#include "ze.h"
Include dependency graph for terminal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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.
 

Detailed Description

Raw terminal mode, key reading, and screen size utilities.