LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 07-14-2007, 08:47 AM   #16
superzhangde
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0

a helpful link: http://www.squish.net/docs/delbs.html
 
Old 10-28-2007, 03:25 AM   #17
krazykringle
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
tset -e ^D

worked for me.
 
Old 02-09-2008, 11:13 AM   #18
mould
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Lightbulb

According to the GNU Emacs manual, the correct way to handle this situation is to toggle the variable "normal-erase-is-backspace".

You can add the following to your .emacs file:

(custom-set-variables
`(normal-erase-is-backspace t))

Or use M-x customize-variable. Then tell it normal-erase-is-backspace, and follow the instructions to use the customization buffer to change the value of the variable from nil to non-nil. Save the change for future sessions (this just serves as a way to save the above code to your .emacs file instead of editing the file manually).

Normally emacs detects the keyboard setup so that the keys will operate in the normal expected way. But when using some text-only terminals, emacs may not be able to detect the keyboard setup. The default mode that emacs uses in this case is to map the backspace key to control-h (C-h), which activates the help system.

See these pages for more information:

http://www.gnu.org/software/emacs/ma.../Deletion.html
http://www.gnu.org/software/emacs/ma...ot-Delete.html
 
Old 09-21-2009, 03:51 PM   #19
zorts
LQ Newbie
 
Registered: Sep 2009
Location: Cambridge, MA
Distribution: whatever is handy
Posts: 2

Rep: Reputation: 0
a day late and a dollar short, but....

I just encountered this problem using:
  • ssh from Windows, using PuTTY 0.60
  • into an AIX 5.3 box
  • on emacs 23.1

The DEL key, as usual, runs backward-delete-char (which is what I expected, though I never USE the DEL character...), but the BACKSPACE key was running delete-char. Attempting to rebind the key using C-? failed miserably. I eventually used this trick to get these bindings for my init.el:
Code:
(global-set-key (quote [deletechar]) (quote backward-delete-char))
(global-set-key (quote [27 deletechar]) (quote backward-kill-word))
THe key insight was discovering that [deletechar] is what I need to bind, not C-?.

Curiously, I compiled the exact same emacs download on Solaris, and it does NOT suffer from this behavior, used from the same PuTTY setup. Weird.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to enable BOTH virtual & local vsftpd logins with PAM? quasidynamic Linux - Software 3 08-12-2010 12:00 PM
backspace in emacs phoenix7 Linux - Software 1 10-01-2005 03:51 AM
Dynamic DNS for remote telnet ssh logins? nadsab Linux - Networking 10 03-27-2004 11:53 AM
Trying to setup remote logins on small network armedguard Linux - Networking 13 12-11-2003 10:26 AM
Redhat 9, Emacs, Backspace, Sucky iketa Linux - Software 0 07-17-2003 12:24 PM


All times are GMT -5. The time now is 07:11 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration