vip/include/term.h
2024-07-04 17:00:13 +01:00

12 lines
228 B
C

#ifndef TERM_H_
#define TERM_H_
#define CTRL_KEY(k) ((k) & 0x1f)
void die(const char *s);
void reset_term();
void setup_term();
int get_cursor_position(int *rows, int *cols);
int get_window_size(int *rows, int *cols);
#endif