Archived
1
Fork 0
This repository has been archived on 2024-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
kilo/include/terminal.h

23 lines
489 B
C
Raw Permalink Normal View History

2023-08-31 04:19:35 +00:00
#ifndef TERMINAL_H
#define TERMINAL_H
2023-09-01 15:04:12 +00:00
#include "input.h"
#include "utils.h"
2023-08-31 04:19:35 +00:00
2023-08-31 05:48:27 +00:00
ERRCODE terminal_enable_raw(void);
ERRCODE terminal_clear(void);
enum cursor_visibility {
CURSOR_SHOWN = 0,
CURSOR_HIDDEN = 1
};
ERRCODE terminal_cursor_visibility(enum cursor_visibility visibility);
ERRCODE terminal_get_win_size(int *rows, int *cols);
ERRCODE terminal_get_cursor_pos(int *row, int *col);
ERRCODE terminal_set_cursor_pos(int, int);
KEY terminal_read_key(void);
2023-08-31 04:19:35 +00:00
#endif // TERMINAL_H