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);
|
2024-11-05 01:02:09 +01:00
|
|
|
void reset_term(void);
|
|
|
|
void setup_term(void);
|
2024-06-30 20:55:59 +02:00
|
|
|
int get_cursor_position(int *rows, int *cols);
|
|
|
|
int get_window_size(int *rows, int *cols);
|
|
|
|
|
|
|
|
#endif
|