[Bug c++/86921] do not remove input in bash
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86921 --- Comment #8 from Yakov --- (In reply to Andreas Schwab from comment #7) > This has nothing to do with gcc, it is a property of the terminal emulation. ok. all my terminals have this problem)= thanks for help
[Bug c++/86921] do not remove input in bash
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86921 --- Comment #6 from Yakov --- (In reply to Jonathan Wakely from comment #5) > (In reply to Yakov from comment #4) > > I am sorry. I think, I did mistake in my question. I did not press Enter. > > You said "when the second line begins. symbols, entered in first line" > > If that doesn't mean you pressed Enter, you need to tell us what you did. We > can't guess. > > See https://gcc.gnu.org/bugs/ ok. bash: $./test aa(here is the end of the first line) aa(then I press Backspace many times) I see: $./test aa(this symbols I can not remove)
[Bug c++/86921] do not remove input in bash
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86921 --- Comment #4 from Yakov --- (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. I am sorry. I think, I did mistake in my question. I did not press Enter.
[Bug c++/86921] do not remove input in bash
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86921 Yakov changed: What|Removed |Added Status|RESOLVED|WAITING Resolution|INVALID |---
[Bug c++/86921] do not remove input in bash
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86921 Yakov changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #3 from Yakov --- (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
[Bug c++/86921] New: do not remove input in bash
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86921 Bug ID: 86921 Summary: do not remove input in bash Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: yamirenk at ya dot ru Target Milestone: --- when the second line begins. symbols, entered in first line, does not remove(with backspace). for example: "cin >> init;"