libdnf5::cli::tty

enum class libdnf5::cli::tty::TaskbarProgressState

State of the terminal taskbar/progress indicator, following the ConEmu OSC 9;4 de facto protocol (also supported by Konsole, Windows Terminal, foot, WezTerm, kitty, …). Terminals that don’t understand it ignore it. Spec: https://learn.microsoft.com/en-us/windows/terminal/tutorials/progress-bar-sequences Origin: https://conemu.github.io/en/AnsiEscapeCodes.html#ConEmu_specific_OSC

Values:

enumerator CLEAR
enumerator NORMAL
enumerator ERROR
enumerator INDETERMINATE
enumerator WARNING
enum class libdnf5::cli::tty::ColoringEnabled

Values:

enumerator AUTO
enumerator ALWAYS
enumerator NEVER
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::reset (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::bold (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::underline (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::blink (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::black (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::red (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::green (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::yellow (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::blue (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::magenta (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::cyan (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::white (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::clear_line (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::clear_to_end (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::cursor_up (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::cursor_down (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::cursor_hide (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::cursor_show (std::ostream &stream)
LIBDNF_CLI_API std::ostream & libdnf5::cli::tty::set_taskbar_progress (std::ostream &stream, TaskbarProgressState state, int percent=0)

Emit an OSC 9;4 escape sequence reporting overall progress to the terminal, which some terminals render on the tab/card/taskbar entry.

Parameters:
  • stream – Stream to write the sequence to.

  • state – Indicator state.

  • percent – Progress percentage, clamped to 0-100 (ignored for CLEAR and INDETERMINATE states).

LIBDNF_CLI_API int libdnf5::cli::tty::get_width ()
LIBDNF_CLI_API bool libdnf5::cli::tty::is_interactive ()
LIBDNF_CLI_API void libdnf5::cli::tty::coloring_enable (ColoringEnabled)
LIBDNF_CLI_API bool libdnf5::cli::tty::is_coloring_enabled ()