Manipulatings with istream
<p>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 <strong>gdb</strong> (console debugger). After running it we can input commands and switch them with keyboard arrows.</p>

<p>The question is how can I "hook" arrows pressing during waiting for input?</p>
