2024-06-30 20:55:59 +02:00
|
|
|
#ifndef TERM_H_
|
|
|
|
#define TERM_H_
|
|
|
|
|
2024-07-04 18:00:13 +02:00
|
|
|
#define CTRL_KEY(k) ((k) & 0x1f)
|
|
|
|
|
2024-06-30 20:55:59 +02:00
|
|
|
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
|