If I do:
std::string buffer;
std::getline(std::cin, buffer);
Despite many niceties missing, that, say, libreadline provides, I am still able to use backspace and ENTER to enter my string. I am not sure whose responsibility it is to process these control characters. Is it the input stream std::cin
, is it the underlying console device, or is it std::getline
itself?