vip/include/term.h

13 lines
228 B
C
Raw Normal View History

#ifndef TERM_H_
#define TERM_H_
2024-07-04 18:00:13 +02:00
#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