DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 11th December 2008
taylor_venable taylor_venable is offline
Real Name: Taylor Venable
Security Programmer
 
Join Date: Jun 2008
Location: Indiana, USA
Posts: 6
Default xterm + bash: Make <DEL> delete char under cursor

I've been toying with this since I put 4.4 on my laptop. I like to use xterm and bash; with this combination I cannot get <BS> to delete the previous character and <DEL> to delete the current one, the behaviour in most apps nowadays. Here's some information, hopefully somebody can help:
  • Typing <CTRL>-V <BS> and <CTRL>-V <DEL> both yield "^?" so bash sees them as the same key.
  • xev shows they are distinct, namely (keycode 22 / BackSpace) and (keycode 107 / Delete).
  • The readline binding of \C-? is backward-delete-char. In my .inputrc I have these definitions:
    Code:
    "^?" : delete-char
    "\C-h" : delete-char
    "\C-?" : delete-char
    In some vain attempt to get <DEL> to do delete-char but to no avail. After doing bind -f .inputrc (even though it is definitely loaded when bash starts), bind -p | grep delete shows that \C-? is still bound to backward-delete-char.
  • I can do bind '^?=delete-char-forward' in ksh, after which both <DEL> and <BS> delete the current char, but this is still a problem since I want them to be different. Probably related to the first point above.
__________________
How many shells could Shell sort sort if Shell sort could sort shells?
Reply With Quote
 

Tags
<bs> key, <del> key


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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm color does not behave properly. pieterverberne OpenBSD General 2 19th August 2009 05:17 PM
Changing shell to bash rex FreeBSD General 13 29th August 2008 03:20 AM
xterm End key graudeejs General software and network 1 24th August 2008 04:55 PM
Is bash included in OpenBSD? bsdnewbie999 OpenBSD General 21 2nd August 2008 02:57 AM
How add additional features on xterm ( Xfce ) ? aleunix OpenBSD Packages and Ports 4 5th June 2008 02:18 PM


All times are GMT. The time now is 01:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick