I want to make something like history of commands for my console-application. It does only one thing: check for input in infinite cycle (with std::getline(std::cin, ...)). As example, you can look at gdb (console debugger). After running it we can input commands and switch them with keyboard arrows.
The question is how can I "hook" arrows pressing during waiting for input?