![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Desktop Environments Support for your Ubuntu desktop. Including Gnome, KDE and XFCE. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
5 Cups of Ubuntu
![]() Join Date: Nov 2005
Location: Lausanne, Switzerland
Beans: 18
Ubuntu Breezy 5.10
|
GNU screen: Backspace thinks it's delete
When I open GNU Screen, my backspace key doesn't work... It behaves like delete.
I tried adding the following line to my .screenrc... Code:
bindkey -k kb stuff "177" "stty -a" outputs the following info (be it from within screen or not): Code:
speed 38400 baud; rows 14; columns 144; 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 ixon -ixoff -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 -echoprt echoctl echoke Thanks in advance for any pointers. |
|
|
|
|
|
#2 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2005
Beans: 2
|
Re: GNU screen: Backspace thinks it's delete
i have this problem too and don't know how to handle it either. what's even weirder is that a lot of "terminal graphics" (ncurses?) applications display messed-up. so far i've found problems with aptitude and w3m. the corruption only happens when i'm inside screen.
i've used screen on a bunch of different platforms, and ubuntu is the first i've encountered to show either of these problems. |
|
|
|
|
|
#3 |
|
make bzImage, not war
![]() |
Re: GNU screen: Backspace thinks it's delete
|
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2005
Beans: 2
|
Re: GNU screen: Backspace thinks it's delete
Thanks for the suggestion, but that doesn't seem to change anything.
|
|
|
|
|
|
#5 |
|
A Carafe of Ubuntu
![]() |
Re: GNU screen: Backspace thinks it's delete
I've had several programs that run in screen get sorted out by the following:
export LANG=C You might give it a shot. If it works, you can add it to .bashrc
__________________
--dare2dreamer |
|
|
|
|
|
#6 |
|
Just Give Me the Beans!
![]() Join Date: Apr 2005
Location: Apache Junction, AZ, USA
Beans: 56
|
Re: GNU screen: Backspace thinks it's delete
no dice. man, this is annoying.
|
|
|
|
|
|
#7 |
|
Just Give Me the Beans!
![]() Join Date: Apr 2005
Location: Apache Junction, AZ, USA
Beans: 56
|
Re: GNU screen: Backspace thinks it's delete
to expand on my last comment a bit:
I use zsh, and have it set to use vim-style command line editing rather than the default (emacs-style?) when I'm in a shell in xterm or Konsole but not in screen, backspace works fine. when I'm in a shell inside screen in konsole or on one of the text consoles, it also works fine. but when I'm in a shell inside screen attached to xterm, hitting the backspace key backs up the cursor one position and puts me in command mode. if I hit backspace again, the character the cursor is sitting on top of is deleted, and the cursor backs up one more position. so the cursor ends up sitting on top of a character. it doesn't matter if I create the screen session in the xterm or merely attach to an already existing screen session on the xterm. |
|
|
|
|
|
#8 |
|
Just Give Me the Beans!
![]() Join Date: Apr 2005
Location: Apache Junction, AZ, USA
Beans: 56
|
Re: GNU screen: Backspace thinks it's delete
found my problem: in /etc/X11/app-defaults/XTerm, there is a 'debian customizations' section.
in there, they have this line: Code:
*backarrowKeyIsErase: true Code:
*backarrowKeyIsErase: false Code:
xrdb ~/.Xdefaults |
|
|
|
|
|
#9 |
|
Just Give Me the Beans!
![]() Join Date: Apr 2005
Location: Apache Junction, AZ, USA
Beans: 56
|
Re: GNU screen: Backspace thinks it's delete
normally I will attach to screen in an xterm.
I have recently found that if I have to type input to a program, the backspace key won't work. like if I type 'cat > /tmp/file', then type some text and hit backspace, it just echoes a ^H character. however, if I attach to screen inside konsole (the kde terminal), the backspace works fine when typing to cat. backspace works fine with either terminal when typing to the shell directly. |
|
|
|
|
|
#10 |
|
5 Cups of Ubuntu
![]() Join Date: Nov 2004
Location: Ankara, Turkey
Beans: 43
|
Re: GNU screen: Backspace thinks it's delete
A simple solution from http://lists.gnu.org/archive/html/sc.../msg00048.html
Set the TERM variable to screen before running screen. Code:
TERM=screen screen Code:
alias screen='TERM=screen screen' |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|