libzypp  17.35.15
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 
18 #ifndef ZYPP_TUI_UTILS_CONSOLE_H_
19 #define ZYPP_TUI_UTILS_CONSOLE_H_
20 
21 #include <string>
22 
23 namespace ztui {
24 
26 std::string readline_getline();
27 
35 unsigned get_screen_width();
36 
45 
46 }
47 
48 #endif /* ZYPP_TUI_UTILS_CONSOLE_H_ */
std::string readline_getline()
Use readline to get line of input.
Definition: console.cc:26
unsigned get_screen_width()
Reads COLUMNS environment variable or gets the screen width from readline, in that order...
Definition: console.cc:48
void clear_keyboard_buffer()
Clear the keyboard buffer.
Definition: console.cc:74