On Mon 03 Aug 2020 at 11:30:42 (+0200), Esteban L wrote:

> I am not typing return. I am typing in a sentence...As I receive new
> output to the terminal window, and I continue typing, my text stream
> just goes down a line. Which is fine, UNLESS I otherwise want to correct
> something, and backspacing doesn't word wrap back to the previously
> typed line.

If characters are typed by a process while you're typing a command
line, then naively trying to backspace over a newline will not work
because bash has a different idea of where the cursor is from reality.

If you just ignore said characters, the command line you typed will
be unaffected, and will execute correctly when you press Return.

> the main thing I want is, if I backspace into a sentence (as I am
> receiving output to the terminal window and that i have not CR'ed), that
> the incomplete sentence will re-show up on the active line, when I reach
> the beginning of the that line.

That's not going to work. When you "backspace into a sentence", you're
rubbing out characters that *you* typed, even though the characters
that are actually disappearing from the display are the ones that were
displayed last, ie those output by the other process.

If you want the characters that *you* typed to be re-shown, clean, on
the command line, then pressing Ctrl-L is the correct way to do it.
*Then* apply your corrections, using Backspace or the arrow keys as
appropriate.

Cheers,
David.

Reply via email to