diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-04-11 06:08:38 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-04-11 06:08:38 +0800 |
| commit | 72e4e43b1fc1743dc3e9dae70682f2945eeba45d (patch) | |
| tree | 2ac8bc85fd4214f1fa07f64aada4809fb1fc3fd6 /include/ricochet/tui | |
| parent | 4ef9c771444943008bb990343127a7d659fd6df2 (diff) | |
| download | rwebbrowser-72e4e43b1fc1743dc3e9dae70682f2945eeba45d.tar.gz rwebbrowser-72e4e43b1fc1743dc3e9dae70682f2945eeba45d.tar.xz | |
feat: implement URL navigation and input handling in browser TUI
Diffstat (limited to 'include/ricochet/tui')
| -rw-r--r-- | include/ricochet/tui/terminal.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ricochet/tui/terminal.hh b/include/ricochet/tui/terminal.hh index 59ca298..2942a2a 100644 --- a/include/ricochet/tui/terminal.hh +++ b/include/ricochet/tui/terminal.hh @@ -43,6 +43,12 @@ public: // Get terminal size std::pair<std::size_t, std::size_t> get_size() const; + // Move cursor to a specific position + void move_cursor( std::size_t row, std::size_t col ) const; + + // Show or hide cursor + void show_cursor( bool visible ) const; + private: struct termios original_termios_ {}; // Save terminal original state }; |
