Delete key and two-button mouse on Linux

Bert Freudenberg bert at isg.cs.uni-magdeburg.de
Mon Feb 19 03:00:42 UTC 2001


On Mon, 19 Feb 2001, Richard A. O'Keefe wrote:

> I wrote:
> 
> 	> I strongly suggest that the UNIX VM should take a peek at the user's
> 	> stty settings.  If it's "stty erase '^H'" then whatever key(s) send BS
> 	> should act as leftward delete (and DEL can be rightward delete).  If
> 	> it's "stty erase '^?'" then whatever key(s) send DEL should act as
> 	> leftward delete (and BS can be rightward delete).
> 	
> "Bert" wrote.
> 	I don't see why that should be necessary.
> 
> So that Squeak is compatible with the user's habits, is why.
> 
> 	It's somewhat funny to look at stty settings in an X program, isn't it?
> 
> Why?  They tell you what keys the user likes to use for what purpose.
> 
> 	Why wouldn't a Squeak preference be sufficient?
> 	
> Because finding preferences is a daunting task for newbies (read: people
> with several years of computing experience on several environments but as
> yet less than one year of Squeak) let alone changing them, and the way you
> save your preferences (by saving a whole new Squeak image) is a little
> surprising for many people.

I don't buy that. But anyway, if you in your Unix Squeak press the big
friendly backspace key, does it do the Right Thing? What if you press the
Del key? What if you remove the silly 127=8 conversion in the VM? What
about other applications?

If you insist on the Del key doing a backwards delete, a simple
	xmodmap -e "keysym Delete = BackSpace"
is sufficient. If the BackSpace key does not actually send BackSpace, look
up your key code (using xev) and execute
	xmodmap -e "keycode 22 = BackSpace"

Happy Squeaking!

-- Bert





More information about the Squeak-dev mailing list