LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-20-2009, 07:37 PM   #1
manifoldronin
LQ Newbie
 
Registered: Aug 2007
Distribution: kubuntu 9.10
Posts: 4

Rep: Reputation: 0
Odd backspace issue: only happens with konsole+remote gnu screen


Hi all,

I'm running into an odd issue where the backspace key works as the delete key when I do the following:

1. open konsole,
2. ssh to a remote host, and
3. start gnu screen there.

In other words, it works fine locally inside or outside screen. It also works fine if I do the steps above in xterm.

I'm running ubuntu 9.10, but kde 4.3.2 off the launchpad kde ppa repo.

It's quite possibly one of the latest kde updates did this, but I can't find anything relevant in the apt log.

Cheers.
 
Old 12-21-2009, 01:03 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

This may depend on the shell being used on the remote host. The most common side effect is that you hit the "Delete" key and get a Control Character of some kind ( ^? or ^H ), rather than have it actually delete something.

Assuming you are getting a "^?" or "^H" when you hit the "delete" key, there's a quick fix and a long term solution;

The quick fix
Type the following after you login to the remote server. This will be good for the current "session" only.
(NOTE: You will have to substitute the Control Character listed below with whatever has been popping up when you hit the "delete" key.)

stty erase "^?"

or

ERASE="^?" ; export ERASE

Long Term Fix

In order for this to work, you will have to determine what shell you're using on the remote server.
You can do this by checking one of the following;

1) Your /etc/passwd entry for your account on the remote server.
2) The value of the "SHELL" environment variable in your current session on the remote server.
3) The output from a regular "ps" while on the remote server.

Once you know what shell you're running, you can update the shell's environment file.

bash = ~/.bashrc or ~/.bash_profile
ksh = ~/.profile and/or ~/.kshrc
sh = ~/.profile

You will have to modify the shell's environment file so that it runs one of the commands from the Quick Fix above.

And as always, make sure to create a backup copy of whatever file you modify!

Hope this helps! (if it does, click the blue thumbs-up in the right-hand corner of this post)

Last edited by xeleema; 12-21-2009 at 01:06 AM.
 
Old 12-21-2009, 08:42 AM   #3
manifoldronin
LQ Newbie
 
Registered: Aug 2007
Distribution: kubuntu 9.10
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by xeleema View Post
Greetingz!
...
Hi xeleema,

I actually found out what was causing the problem - at some point I was playing with things and changed $TERM from 'xterm' to 'xterm-color', which seems to have somehow thrown the _remote_ gnu screen off the track. :-)

I suppose the real solution would lie in somewhere in termcap, but the quick fix obviously was just reverting back to 'xterm'.

Still thanks for the detailed response and thumbs up for the spirit! :-)
Happy Holidays.
 
Old 12-27-2009, 04:02 AM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Ah! Okay, thanks for the follow-up!

Happy Holidays and a Happy New Year to you and yours!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backspace using konsole Sixpax Linux - General 3 01-17-2012 03:13 PM
How do I enable emacs Backspace on remote logins? jkcunningham Linux - General 18 09-21-2009 03:51 PM
trying to use GNU screen. backspace makes screen flash. twelvenine Linux - Software 5 08-07-2009 08:37 PM
LXer: Remote Helpdesk on Linux With GNU Screen LXer Syndicated Linux News 0 07-10-2009 11:30 PM
No backspace in vi (Konsole) tisource Linux - Software 8 04-27-2005 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration