Red Hat Bugzilla – Bug 130803
debugger fails to pick up backspace in screen
Last modified: 2007-11-30 17:10:47 EST
When I go into the debugger in perl via "perl -de 0", inside screen,
using an xterm (or any term for that matter), the backspace produces
^H chars. As I understand it, with the TERM environment variable set
to screen, perl is responsible for expecting ^H chars and using them
This doesn't happen in Vim, the python interpreter, or any other
application I've tried.
[msoulier@tigger msoulier]$ rpm -q perl
[msoulier@tigger msoulier]$ rpm -q screen
[msoulier@tigger msoulier]$ stty -a
speed 38400 baud; rows 43; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0
bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
[msoulier@tigger msoulier]$ echo $TERM
As a workaround, after I start screen, I can do the following to fix
stty erase `tput kbs`
...which changes the erase char to ^H. But, I can't seem to put this
command anywhere where it will take effect when I start screen. As
only the perl debugger is at issue here, I suspect it is at fault.
I've gone through some other screen-related bugs with backspace, and
they all claim that my problem should be fixed now, so I'm tentatively
opening this new issue against perl.
fc1 is no longer supported. If you are able to reproduce this with a fresh
install of FC4 or FC5 with a fresh user profile, please open a new bug.