diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-22 02:34:45 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-22 02:34:45 +0000 |
| commit | 74e96589df2a77735410c5c03454a195d7efeecb (patch) | |
| tree | eb52d7eb08c8bbb47e28f8641e7f1c3cc21c4682 /module-test | |
| parent | ab02942670f37520833bc7dc8d0ff55d94eda7d7 (diff) | |
add cursor moving
Diffstat (limited to 'module-test')
| -rw-r--r-- | module-test/line_test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module-test/line_test.cc b/module-test/line_test.cc index d71d088..207e2e8 100644 --- a/module-test/line_test.cc +++ b/module-test/line_test.cc @@ -22,6 +22,9 @@ using namespace ov4; int main() { enable_raw(); + T_position pos = get_cursor_position(); + cursor_row = pos.row; + cursor_col = pos.col; string s = readline(); disable_raw(); cout << s << endl; |
