libzypp: zypp-tui/utils/console.h Source File

libzypp 17.38.6

console.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------/
9*
10* This file contains private API, this might break at any time between releases.
11* Strictly for internal use!
12*/
13
17
18#ifndef ZYPP_TUI_UTILS_CONSOLE_H_
19#define ZYPP_TUI_UTILS_CONSOLE_H_
20
21#include <string>
22
23namespace ztui {
24
26std::string readline_getline();
27
35unsigned get_screen_width();
36
44void clear_keyboard_buffer();
45
46}
47
48#endif /* ZYPP_TUI_UTILS_CONSOLE_H_ */
ztui
Definition application.cc:13
ztui::readline_getline
std::string readline_getline()
Use readline to get line of input.
Definition console.cc:26
ztui::get_screen_width
unsigned get_screen_width()
Reads COLUMNS environment variable or gets the screen width from readline, in that order.
Definition console.cc:48
ztui::clear_keyboard_buffer
void clear_keyboard_buffer()
Clear the keyboard buffer.
Definition console.cc:74