After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590155 - cannot backspace across a line break
cannot backspace across a line break
Status: RESOLVED NOTGNOME
Product: vte
Classification: Core
Component: general
0.20.x
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-07-29 15:40 UTC by Pedro Villavicencio
Modified: 2009-07-29 19:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28



Description Pedro Villavicencio 2009-07-29 15:40:46 UTC
this report has been filed here:

https://bugs.edge.launchpad.net/ubuntu/+source/vte/+bug/342402

"1. Create a new gnome-terminal.
2. Run 'echo -n ab'.
3. Note that the characters 'ab' appear before the next prompt.
4. At that prompt, type characters repeatedly until the line wraps.
5. Now try to delete the entire line of input with backspace.

Expected result:
You should be able to delete the entire logical line, despite line wrapping, using backspace.

Actual result:
You can only delete the wrapped line the cursor is on. Once you reach the left edge of the screen, backspace has no effect.

Note that this also happens in xterm so I don't think it is gnome-terminal specific. Also note that it doesn't happen if you echo only a single character, as in 'echo -n a' and it does happen for more than two characters."

Thanks,
Comment 1 Christian Persch 2009-07-29 16:30:39 UTC
True. But I suspect this to be a readline bug, not vte.
Comment 2 Behdad Esfahbod 2009-07-29 17:29:25 UTC
Yep.  It's not really a bug though.  Bash/readline assumes that the prompt starts at the first column.  One way to fix this is to add a "\r" to the beginning of PS1, to eat everything on the line, but that may be more confusing.
Comment 3 Pedro Villavicencio 2009-07-29 19:00:40 UTC
Got it, thank you guys.