Backspace key -- ADB keyboard

2002-03-12 Thread Mark Burgess
I just yesterday got 2.2r5 installed on a 7200/75 -- works great -- 
but the backspace key does not work right in bash. Ctrl-h does work 
but I'd like the Delete key to do the same. Actually at one point I 
was surprised to find it working fine but then it broke again after 
restarting. This was before I started trying to fix it so I have no 
idea what caused it to start working.


Anyway, I've found a variety of discussions about this but nothing 
specific to the ADB keyboard. One solution I tried caused the 
unmodified "e" key to do backspacing. :-|


If possible I'd like the forward-delete key to work too. :-)


Thanks,

--
Mark



Re: Backspace key -- ADB keyboard

2002-03-13 Thread Mark Burgess

At 11:02 PM +0100 3/13/02, Michel Dänzer wrote:

On Mit, 2002-03-13 at 01:29, Mark Burgess wrote:
 > I just yesterday got 2.2r5 installed on a 7200/75 -- works great --
 > but the backspace key does not work right in bash. Ctrl-h does work
 > but I'd like the Delete key to do the same.

The key behaviour isn't specific to the shell but maybe to the terminal
emulator. multi-gnome-terminal has options 'Swap Delete/Backspace' and
'Delete generates DEL/^H' I've had to play with.


Hm, true. The backspace works fine in the console. OTOH it also works 
fine in vi through xterm... it just seems to be busted in bash 
through xterm.


multi-gnome-terminal, with the Swap Delete/Backspace setting checked, 
seems to work ok (more or less... the forward delete and the regular 
delete both delete the character behind the cursor). It launches a 
lot slower than xterm on this old machine though. I will have to try 
some others to see if they are any better.


Unfortunately I turned off the menubar so I will have to figure out 
how to turn it back on before I can mess around with any more 
settings. :-(  I do not have a Menu widget in my titlebar (running 
WindowMaker) and don't have multi-button mouse emulation working yet.


Thanks,


--
Mark



Re: Backspace key -- ADB keyboard

2002-03-14 Thread Mark Burgess
Unfortunately I turned off the menubar so I will have to figure out 
how to turn it back on


Well, I figured that out but still want the backspace to work in 
xterm. I tried to put the following in my .xinitrc:


xmodmap -e "keycode 22 = BackSpace"
xmodmap -e "keycode 107 = Delete"

but that caused x to immediately shut down whenever it started. 
Interestingly that still happens even if the lines are commented out.



I also tried to put this in my ~/.Xdefaults:

.XTerm.VT100.Translations: #override BackSpace: string(0x7F)\n\
Delete:string(0x04)

which is closer, sort of -- it causes both keys to generate ^d (which 
does not delete the character under the cursor, as many things I've 
seen say it does).



--
Mark



Re: Backspace key -- ADB keyboard

2002-03-15 Thread Mark Burgess

At 11:46 AM -0300 3/15/02, Rogério Brito wrote:

On Mar 13 2002, Mark Burgess wrote:
 > Hm, true. The backspace works fine in the console. OTOH it also works
 > fine in vi through xterm... it just seems to be busted in bash
 > through xterm.

Do you have anything strange in your ~/.inputrc?


Nope, not right now. I've tried a few things in there that didn't 
seem to work, so currently I don't use one at all. The latest stuff I 
did to ~/.Xdefaults (see previous post) did change the behavior of 
the Backspace key, but overall it's for the worse -- the key used to 
work fine in vi but now it doesn't, and it's not really working right 
in bash or cat either. Once I get it working in xterm/bash I'll 
probably have to go in to each app that I use and tweak the behavior 
there.



--
Mark