ze
Loading...
Searching...
No Matches
terminal.h
Go to the documentation of this file.
1
8#pragma once
9
10#include "ze.h"
11
12void die(const char *s);
13void disableRawMode(void);
14void enableRawMode(void);
15char editorReadKey(void);
16int getCursorPosition(int *rows, int *cols);
17int getWindowSize(int *rows, int *cols);
18
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.