LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools
Old 07-14-2007, 09:47 AM   #16
superzhangde
LQ Newbie
 
Registered: Jul 2007
Posts: 2
Thanked: 0

[Log in to get rid of this advertisement]
a helpful link: http://www.squish.net/docs/delbs.html
superzhangde is offline     Reply With Quote
Old 10-28-2007, 04:25 AM   #17
krazykringle
LQ Newbie
 
Registered: Oct 2007
Posts: 1
Thanked: 0
tset -e ^D

worked for me.
krazykringle is offline     Reply With Quote
Old 02-09-2008, 12:13 PM   #18
mould
LQ Newbie
 
Registered: Feb 2008
Posts: 2
Thanked: 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
mould is offline     Reply With Quote
Old 09-21-2009, 04:51 PM   #19
zorts
LQ Newbie
 
Registered: Sep 2009
Location: Cambridge, MA
Distribution: whatever is handy
Posts: 2
Thanked: 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.
windows_xp_2003 zorts is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
How to enable BOTH virtual & local vsftpd logins with PAM? quasidynamic Linux - Software 2 07-24-2008 04:53 PM
backspace in emacs phoenix7 Linux - Software 1 10-01-2005 04:51 AM
Dynamic DNS for remote telnet ssh logins? nadsab Linux - Networking 10 03-27-2004 12:53 PM
Trying to setup remote logins on small network armedguard Linux - Networking 13 12-11-2003 11:26 AM
Redhat 9, Emacs, Backspace, Sucky iketa Linux - Software 0 07-17-2003 01:24 PM


All times are GMT -5. The time now is 05:37 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration