From c2336a8a22a5ddf26b33a53f914bf0d5397a6553 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 22 Sep 2026 02:52:22 +0000 Subject: add cursor moving limit pos --- include/line/cursor.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/line/cursor.h (limited to 'include/line/cursor.h') diff --git a/include/line/cursor.h b/include/line/cursor.h new file mode 100644 index 0000000..7417201 --- /dev/null +++ b/include/line/cursor.h @@ -0,0 +1,28 @@ +#pragma once + +#include + +using namespace std; // TODO: remove + +namespace ov4 +{ + +struct T_position +{ + int row; + int col; +}; + +inline int cursor_row; +inline int cursor_col; + +inline int line_end_pos; + +T_position get_cursor_position(); + +void print_override(const std::string &s); + +void move_cursor(char c); + +} + -- cgit v1.3.1-4-g156e