Sponsored Content
Full Discussion: problem with delete key...
Operating Systems Solaris problem with delete key... Post 302253168 by nobo on Friday 31st of October 2008 05:47:00 AM
Old 10-31-2008
First, to clarify: we are talking here about the key labeled "Delete" on my 102 key keyboard, and so marked on all of the other hundreds of millions of standard PC keyboards out there. I'm NOT talking about the "Backspace" key, which old unix culture calls "delete", or rather DEL, per this termio man page entry from a solaris 8 box:

Quote:
ERASE (DEL) erases the preceding character. It does not erase beyond the start of a line, as delimited by a NL, EOF, EOL, or EOL2 character.
I have experienced this issue (non functionality of my "Delete" and other keys) logging in via (open)ssh, using several term emulators (pure xterm, konsole, rxvt, others), from a wide variety of linux systems (2.2 kernels and up, several releases of RH, SuSe, Debian, several releases of Ubuntu, Gentoo, various custom builds), logging into many different Sun systems (solaris 7 thru 10 inclusive, both SPARC and x86).

HOME, END, and less frequently, PGUP, PGDN, and occasionally, the UP, DN, RIGHT, and LEFT arrow keys are also troublesome.

I've put many, many hours (40+) into fixing this. I've read a lot of man pages. I've done a lot of googling. I'm stymied.

It's been awhile so I'm a little rusty on it; but I've been spending a bunch of time dealing w/Solaris this week and it's on my mind. Looking over my notes, I've assaulted this from several angles; the primary vectors of attack have been terminfo (with a brief foray into legacy termcap stuff) and keytables. Of course there's been the stty tricks, various local tweaks to the various terminals. Many other abortive sojourns. All to no avail.

I've yet to packet sniff a solaris box to see what it sees but that is probably in the cards the next time I get furious enough to spend my time and my employer's money on this issue.

As to solutions, yes, this "works":

Quote:
it should work with "stty erase ^H", but you will have to type the <ctrl>h keyboard combination...

# stty erase \^h #for backspace
# stty erase \^? #for delete

regards
Of course, it really isn't a solution, is it? I mean, the keys on this old 102 PC keyboard (I buy these things used for a few dollars, I can't stand the action on modern kbds) still don't do what it says on the key. "Delete". Right Erase. Rub out. Whatever.

Why in god's name solving this is so hard I've no clue. A lot of it has to do with the culture war implicit in the issue. Personally, I don't care to engage in a culture war.

I'd just like to make this work. I want to press the key labeled "Delete" on my 102 key PC keyboard and see it delete the character under the cursor. Is there a human being alive, logging in to any Solaris box from any Linux workstation using any terminal emulator, obtaining this result?

thx
nobo
 

10 More Discussions You Might Find Interesting

1. AIX

Force delete key to work in aix ksh ?

I'm using AIX console over putty. I'm not very happy with default ksh command editing capabilities so I forced insert mode, arrow keys and command history by issuing: set -o emacs alias __D=`echo "\002"` alias __C=`echo "\006"` in emacs mode history works using ctrl+p, so only thing... (2 Replies)
Discussion started by: vilius
2 Replies

2. UNIX for Dummies Questions & Answers

problem with delete key...

Hi all .. #stty erase ^H stty erase ^? is already there in my .profile,but still whin i press delete key it is displaying ^[[ like this..... what to do.... (0 Replies)
Discussion started by: venkatramana
0 Replies

3. Shell Programming and Scripting

How to delete ctrl key values in a given string?

Hi all, My query is... in the runtime, you are getting any input string. Unfortunately, you have pressed some ctrl keys or esc keys or arrow keys while typing input string. You can get the input value like that... input string as welcome^ So ,I want to remove those unwanted keys... (4 Replies)
Discussion started by: balan_mca
4 Replies

4. Shell Programming and Scripting

How to delete duplicate records based on key

For example suppose I have a file which contains data as: $cat data 800,2 100,9 700,3 100,9 200,8 100,3 Now I want the output as 200,8 700,3 800,2 Key is first three characters, I don't want any reords which are having duplicate keys. Like sort +0.0 -0.3 data can we use... (9 Replies)
Discussion started by: sumitc
9 Replies

5. Solaris

problem when generating dsa key

i got this while trying generating a dsa key on solaris 10 x86 platform how can i solve it? (0 Replies)
Discussion started by: conandor
0 Replies

6. Shell Programming and Scripting

How to set delete Key to erase automatically

We need to su to root in 1000 systems, so it is almost impossible to add "stty erase ^H" to every .profile on these systems. Is there any way to set delete key to erase automatically after running "su -"? Thanks :) (4 Replies)
Discussion started by: aixlover
4 Replies

7. AIX

Key mapping problem in qputty

Hello, I am using fgltty connection (which is actually qputty) to my AIX 6.1 server. The problem is that PageUp and PageDown keys are not working and i cannot find a way to do the correct mapping for this issue. I read and tried many things that i saw in the web but nothing worked. Well... (2 Replies)
Discussion started by: omonoiatis9
2 Replies

8. UNIX for Advanced & Expert Users

[Solved] SSH key authentication problem

Hi All, this is the very first time i am going to use SSH authentication. first i login to server@ and under this ..ssh directory of servera i used this following command: ssh-keygen -t rsa -b 1024 and i had 2 files(bravo_dbtest and bravo_dbtest.pub) created respectively, further i copied the... (13 Replies)
Discussion started by: lovelysethii
13 Replies

9. UNIX for Dummies Questions & Answers

Delete lines according to a key words in that line

HI, I have a file A like this: c 1 length 14432 width 3434 temp 34 c 2 length 3343 width 0923 height 9383 hm 902 temp34 c 3 length 938 height 982 hm 9292 temp 23 ... (2 Replies)
Discussion started by: the_simpsons
2 Replies

10. Shell Programming and Scripting

Delete lines containing key words dynamically

Hi Frens, I have a requirement where I need to delete lines having key words and am using the below command to do that sed '/UNIX/d' inputfile > output But now I have one more requirement where in there will be one reference file which has the ID's to be deleted from the master file. ... (3 Replies)
Discussion started by: weknowd
3 Replies
glutSpecialUpFunc(3GLUT)					       GLUT						  glutSpecialUpFunc(3GLUT)

NAME
glutSpecialUpFunc - sets the special keyboard up (key release) callback for the current window. SYNTAX
void glutSpecialUpFunc(void (*func)(int key, int x, int y)); ARGUMENTS
func The new special callback function. DESCRIPTION
glutSpecialUpFunc sets the special keyboard up (key release) callback for the current window. The special keyboard up callback is triggered when keyboard function or directional keys are released. The key callback parameter is a GLUT_KEY_* constant for the special key pressed. The x and y callback parameters indicate the mouse in window relative coordinates when the key was pressed. When a new window is created, no special up callback is initially registered and special key releases in the window are ignored. Passing NULL to glutSpecialUpFunc dis- ables the generation of special up callbacks. During a special up callback, glutGetModifiers may be called to determine the state of modifier keys when the key release generating the callback occurred. To avoid the reporting of key release/press pairs due to auto repeat, use glutIgnoreKeyRepeat to ignore auto repeated keystrokes. An implementation should do its best to provide ways to generate all the GLUT_KEY_* special keys. The available GLUT_KEY_* values are: GLUT_KEY_F1 F1 function key. GLUT_KEY_F2 F2 function key. GLUT_KEY_F3 F3 function key. GLUT_KEY_F4 F4 function key. GLUT_KEY_F5 F5 function key. GLUT_KEY_F6 F6 function key. GLUT_KEY_F7 F7 function key. GLUT_KEY_F8 F8 function key. GLUT_KEY_F9 F9 function key. GLUT_KEY_F10 F10 function key. GLUT_KEY_F11 F11 function key. GLUT_KEY_F12 F12 function key. GLUT_KEY_LEFT Left directional key. GLUT_KEY_UP Up directional key. GLUT_KEY_RIGHT Right directional key. GLUT_KEY_DOWN Down directional key. GLUT_KEY_PAGE_UP Page up directional key. GLUT_KEY_PAGE_DOWN Page down directional key. GLUT_KEY_HOME Home directional key. GLUT_KEY_END End directional key. GLUT_KEY_INSERT Inset directional key. Note that the escape, backspace, and delete keys are generated as an ASCII character. SEE ALSO
glutSpecialFunc, glutKeyboardFunc, glutKeyboardUpFunc, glutMouseFunc, glutSpaceballButtonFunc, glutButtonBoxFunc, glutTabletButtonFunc, glutGetModifiers, glutIgnoreKeyRepeat AUTHOR
Mark J. Kilgard (mjk@nvidia.com) GLUT
3.7 glutSpecialUpFunc(3GLUT)
All times are GMT -4. The time now is 11:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy