Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to make Del delete right on Sun

2 views
Skip to first unread message

Chris Peel

unread,
Jun 16, 1994, 1:43:29 PM6/16/94
to
I have just spent nine months working on a PC and have just remembered
again how much the Delete key on a SUN keyboard bugs me(but it is heaven
to be using a SUN again). It acts the same way as the Backspace key,
that is it deletes the character to the left of the caret; I would like
it to delete the character to the right.

I've tried several times to use xmodmap to fix this problem, but
have never suceeded.

Anybody have any suggestions?

___________________________________________________________________
Chris Peel Voice: 801-755-4153
Space Dynamics Laboratory FAX: 801-755-4458
Utah State University, UMC 9710
1747 North Research Parkway Internet Address
Logan, UT 84321 pe...@bullet.cal.sdl.usu.edu
___________________________________________________________________

Matt Elkins

unread,
Jun 17, 1994, 7:21:47 PM6/17/94
to
In article 21...@cc.usu.edu, pe...@bullet.cal.sdl.usu.edu (Chris Peel) writes:
:>I have just spent nine months working on a PC and have just remembered
:>again how much the Delete key on a SUN keyboard bugs me(but it is heaven
:>to be using a SUN again). It acts the same way as the Backspace key,
:>that is it deletes the character to the left of the caret; I would like
:>it to delete the character to the right.

In your .Xdefaults file add the following line:

OpenWindows.KeyboardCommand.EraseCharForward: Delete,Delete+Shift


I can't imagine why this isn't default behavior.

---
-- Matt C. Elkins |Religion and sex are power plays...manipulate the
|people for the money they pay...selling skin,
ma...@gold.gvg.tek.com |selling God...the numbers look the same on their
|credit cards. -Queensryche:Spreading the Disease

Casper H.S. Dik

unread,
Jun 18, 1994, 8:13:11 AM6/18/94
to
ma...@gold.gvg.tek.com (Matt Elkins) writes:

>In your .Xdefaults file add the following line:

>OpenWindows.KeyboardCommand.EraseCharForward: Delete,Delete+Shift


>I can't imagine why this isn't default behavior.

Because unix came before PCs and we don't need no stinking PC
defaults near our machines (like in Motif, yuck).

Casper

Bruce Barnett

unread,
Jun 20, 1994, 4:39:24 PM6/20/94
to
In article <2ttb6b$4...@gv-gate.gvg.tek.com> ma...@gold.gvg.tek.com (Matt Elkins) writes:
> I can't imagine why this isn't default behavior.

I like the idea that Control-U, Control-W and Delete can be modified
by the Shift- key to change the direction. This gives you *6*
different delete functions, instead of 2 or 3. The Shift makes it
easier to remember.
--
Bruce Barnett <bar...@crd.ge.com> uunet!crdras!barnett

Matt Elkins

unread,
Jun 21, 1994, 3:42:10 PM6/21/94
to
In article q...@mail.fwi.uva.nl, cas...@fwi.uva.nl (Casper H.S. Dik) writes:

>ma...@gold.gvg.tek.com (Matt Elkins) writes:
>>OpenWindows.KeyboardCommand.EraseCharForward: Delete,Delete+Shift
>>I can't imagine why this isn't default behavior.

>Because unix came before PCs and we don't need no stinking PC
>defaults near our machines (like in Motif, yuck).

Gosh, you're absolutely right, having two keys right next to each other that do
exactly the same thing is a much more sensible default than some silly old
(ick) PC convention.

Jack Morrison

unread,
Jun 23, 1994, 10:52:46 AM6/23/94
to
In article d...@gv-gate.gvg.tek.com, ma...@gold.gvg.tek.com (Matt Elkins) writes:
>In article q...@mail.fwi.uva.nl, cas...@fwi.uva.nl (Casper H.S. Dik) writes:
>>ma...@gold.gvg.tek.com (Matt Elkins) writes:
>>>OpenWindows.KeyboardCommand.EraseCharForward: Delete,Delete+Shift
>>>I can't imagine why this isn't default behavior.
>
>>Because unix came before PCs and we don't need no stinking PC
>>defaults near our machines (like in Motif, yuck).
>
>Gosh, you're absolutely right, having two keys right next to each other that do
>exactly the same thing is a much more sensible default than some silly old
>(ick) PC convention.

Delete and Backspace keys seem to jump around between different manufacturer's
keyboards (even between version of one manufacturer). So I for one am quite
happy to have the two keys do the same thing.
---
"How am I typing? Call 1-818-354-7782" ja...@robotics.jpl.nasa.gov
Jack Morrison/Jet Propulsion Lab/MS107-102 4800 Oak Grove Dr, Pasadena CA 91109


Paul von Behren

unread,
Jun 20, 1994, 9:56:28 AM6/20/94
to
Matt Elkins (ma...@gold.gvg.tek.com) wrote:

: In article 21...@cc.usu.edu, pe...@bullet.cal.sdl.usu.edu (Chris Peel) writes:
: :>I have just spent nine months working on a PC and have just remembered
: :>again how much the Delete key on a SUN keyboard bugs me(but it is heaven
: :>to be using a SUN again). It acts the same way as the Backspace key,
: :>that is it deletes the character to the left of the caret; I would like
: :>it to delete the character to the right.

: In your .Xdefaults file add the following line:

: OpenWindows.KeyboardCommand.EraseCharForward: Delete,Delete+Shift


: I can't imagine why this isn't default behavior.


This will only "fix" the OpenWin desktop apps (mailtool, textedit, etc).
Other programs may or may not have their own key mapping capabilities.
This is probably why the "fix" is not the default - the current default
maintains brain-dead compatibility with software that doesn't take
advantage of workstation keyboards (or even contemporary terminal
keyboards).

I use tcsh (a csh superset) for my shell to remap keys when I'm using
the command line. I have key maps set up to map delete, home, and end
to be more PC-like. By default, tcsh gives you command editting similar
to DOSKEY (up/down arrow).

I also like the Workstation over the PC in every way other than the
keyboard. I didin't remap this way to be more PC compatible, it's
just seems a lot more efficient. On the PC, I wrote a suite of BAT
files to replace DOS commands with Unix names (ls, rm, mv, cat, etc).

--
-------------------------------------------------
Paul von Behren Paul_vo...@stortek.com

Vidiot

unread,
Jun 21, 1994, 11:47:14 AM6/21/94
to
In article <1994Jun16.1...@cc.usu.edu> pe...@bullet.cal.sdl.usu.edu writes:
<I have just spent nine months working on a PC and have just remembered
<again how much the Delete key on a SUN keyboard bugs me(but it is heaven
<to be using a SUN again). It acts the same way as the Backspace key,
<that is it deletes the character to the left of the caret; I would like
<it to delete the character to the right.
<
<I've tried several times to use xmodmap to fix this problem, but
<have never suceeded.
<
<Anybody have any suggestions?

Never happen. On Unix command lines, delete acts like backspace. What
various other pieces of software do is up to them.
--
e-mail: br...@wi.extrel.com or ftms!brown%astroa...@cs.wisc.edu
phone: (608) 273-8262 fax: (608) 273-8719 voice-mail: (800) 426-6488 ext 8293
System Administrator - Extrel FTMS - Madison WI. [An era has come to an end.]
[The need for igniting the midnight petroleum has come to a close as well.]

Roger Marquis

unread,
Jul 3, 1994, 11:32:59 PM7/3/94
to
pe...@bullet.cal.sdl.usu.edu (Chris Peel) writes:
>again how much the Delete key on a SUN keyboard bugs me(but it is heaven
>to be using a SUN again). It acts the same way as the Backspace key,
>that is it deletes the character to the left of the caret; I would like
>it to delete the character to the right.

If it's the command line you're trying to fix try 'man stty' or put the
following in your .login:

stty erase ^H (Note: type ^H by pressing ctrl-V and then ctrl-H)

This IS the default first thing to fix when you setup a .login.

Roger Marquis

0 new messages