|
EPAM B2BITS C++ Bovespa MarketData handler
1.27.1
|
Console manipulations More...
#include <b2bits/core/Console.h>
Classes | |
| struct | color |
| color manipulator change color for the next << operations More... | |
| struct | endl |
| endl manipulator - replacement for std::endl More... | |
| struct | flush |
| flush manipulator - replacement for std::flush More... | |
| struct | setw |
| width manipulator More... | |
Static Public Member Functions | |
| static void | init () |
| initializes the console More... | |
| static void | destroy () |
| destroys the console More... | |
| static void | showCursor (bool show=true) |
| show/hide cursor More... | |
| static void | hideCursor () |
| hide cursor from the screen More... | |
| static void | moveCursor (int x, int y) |
| move cursor to the (x,y) position More... | |
| static void | getCursor (int &x, int &y) |
| get current cursor position More... | |
| static void | getMaxxy (int &x, int &y) |
| get max values for cursor position coordinates More... | |
| static void | cleanupToBottom () |
| clear screen from current line to the bottom More... | |
| static void | clrscr () |
| clear screen More... | |
| static int | waitChar () |
| wait for user unput More... | |
| static int | getChar (bool wait) |
| get user input More... | |
| static std::ostream & | cout () |
| replacement for std::cout More... | |
| static std::istream & | cin () |
| replacement for std::cin More... | |
| static bool | showMenu (const char *items[], int num_items, int &choice) |
| show user menu in current position More... | |
| template<int num_items> | |
| static bool | showMenu (const char *(&items)[num_items], int &choice) |
| template<typename T > | |
| static void | showList (const T &cont, const std::string &head, bool showLineNumbers) |
| show scrollable list of items More... | |
Static Public Attributes | |
Basic colors support | |
| static const int | CLR_BLACK_ON_WHITE |
| static const int | CLR_WHITE_ON_BLACK |
| static const int | CLR_RED_ON_BLACK |
| static const int | CLR_GREEN_ON_BLACK |
| static const int | CLR_BLUE_ON_BLACK |
Basic key codes | |
| static const int | key_ESC |
| static const int | key_CR |
| static const int | key_DOWN |
| static const int | key_UP |
| static const int | key_LEFT |
| static const int | key_RIGHT |
| static const int | key_PAGEUP |
| static const int | key_PAGEDN |
| static const int | key_F1 |
| static const int | key_F2 |
| static const int | key_F3 |
| static const int | key_F4 |
| static const int | key_F5 |
| static const int | key_F6 |
| static const int | key_F7 |
| static const int | key_F8 |
| static const int | key_F9 |
| static const int | key_F10 |
| static const int | key_F11 |
| static const int | key_F12 |
Console manipulations
Helper class for console manipulations, for debug or demo purposes only
|
static |
replacement for std::cin
|
static |
clear screen from current line to the bottom
|
static |
clear screen
|
static |
replacement for std::cout
|
static |
destroys the console
|
static |
get user input
| wait | when set to true getchar=waitchar |
|
static |
get current cursor position
| [out] | x | X screen coordinate |
| [out] | y | Y screen coordinate |
|
static |
get max values for cursor position coordinates
| [out] | x | max X screen coordinate |
| [out] | y | max Y screen coordinate |
|
inlinestatic |
hide cursor from the screen
|
static |
initializes the console
|
static |
move cursor to the (x,y) position
| x | X screen coordinate |
| y | Y screen coordinate |
|
static |
show/hide cursor
| show | true to show, false to hide |
|
inlinestatic |
show scrollable list of items
| cont | container items, must support [] operations |
| head | head string to display |
| showLineNumbers | show/hide line numbers |
|
static |
show user menu in current position
| items | menu items to show |
| num_items | size of items |
| choice | user choice made |
|
inlinestatic |
|
inlinestatic |
wait for user unput
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
1.8.5