diff options
author | cflip <cflip@cflip.net> | 2023-01-08 14:15:01 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-01-08 14:15:01 -0700 |
commit | 91195d34e1f71246cadc41705004d66ab647087e (patch) | |
tree | 0d2f7e929b7b51590d270e2f22fb5a3621204bf2 /terminal.h |
Initial import of existing source code
This is based off of snaptoken's "Build Your Own Text Editor" tutorial
at https://viewsourcecode.org/snaptoken/kilo/.
Diffstat (limited to 'terminal.h')
-rw-r--r-- | terminal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h new file mode 100644 index 0000000..529ba74 --- /dev/null +++ b/terminal.h @@ -0,0 +1,7 @@ +#pragma once + +void die(const char* message); +void disable_raw_mode(); +void enable_raw_mode(); +int get_cursor_position(int* rows, int* cols); +int get_window_size(int* rows, int* cols); |