Skip to content

Commit

Permalink
Add cursor_down TTY_COMMAND
Browse files Browse the repository at this point in the history
  • Loading branch information
kontura committed Dec 4, 2024
1 parent 7281533 commit 1b34c4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/libdnf5-cli/tty.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ LIBDNF_CLI_API std::ostream & white(std::ostream & stream);

LIBDNF_CLI_API std::ostream & clear_line(std::ostream & stream);
LIBDNF_CLI_API std::ostream & cursor_up(std::ostream & stream);
LIBDNF_CLI_API std::ostream & cursor_down(std::ostream & stream);

LIBDNF_CLI_API std::ostream & cursor_hide(std::ostream & stream);
LIBDNF_CLI_API std::ostream & cursor_show(std::ostream & stream);
Expand Down
3 changes: 3 additions & 0 deletions libdnf5-cli/tty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ TTY_COMMAND(clear_line, "\033[2K")
// tty::cursor_up
TTY_COMMAND(cursor_up, "\x1b[A")

// tty::cursor_down
TTY_COMMAND(cursor_down, "\x1b[B")

// tty::cursor_hide
TTY_COMMAND(cursor_hide, "\x1b[?25l")

Expand Down

0 comments on commit 1b34c4e

Please sign in to comment.