From 91195d34e1f71246cadc41705004d66ab647087e Mon Sep 17 00:00:00 2001 From: cflip Date: Sun, 8 Jan 2023 14:15:01 -0700 Subject: 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/. --- terminal.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 terminal.h (limited to 'terminal.h') 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); -- cgit v1.2.3