[Bug c++/86921] do not remove input in bash
yamirenk at ya dot ru
gcc-bugzilla@gcc.gnu.org
Tue Aug 14 07:54:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86921
Yakov <yamirenk at ya dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Yakov <yamirenk at ya dot ru> ---
(In reply to Jonathan Wakely from comment #2)
> If you're saying that data read from the terminal by std::cin cannot be
> "un-read" by typing backspace, that's correct. That is not a GCC bug, it's
> just how the OS works.
>
> In the default line-buffered mode, when you hit Enter the line is sent to
> the application. Typing backspace cannot undo that, the program has already
> read the data, and doesn't receive the backspace characters.
ok, thanks
More information about the Gcc-bugs
mailing list