Sponsored Content
Full Discussion: Unix and keyboard
Top Forums UNIX for Advanced & Expert Users Unix and keyboard Post 10084 by Perderabo on Wednesday 7th of November 2001 01:36:14 PM
Old 11-07-2001
There won't be an easy way to this.

A program like vi won't echo a dot when you type a dot. vi manages this by putting the terminal into raw mode. You can write a program like vi that also does this. See "man termios" and "man termio" for details. But, as with vi, you need to put the terminal back the way you found it as you exit. Other programs aren't prepared to handle a raw terminal very well.

If your terminal io is based on STREAMS, it is possible to write a streams module that would do this.

I know it's low-tech, but you could just relabel your keys.
 

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How can I map Unix keyboard for PC keyboard

A Solaris AXI 440 machine with Solaris 8 version. I have PC users who use an emulation to login to the Solaris server. How can I change the keyboard mapping of the Sun keyboard to fit to the PC keyboard ? Any comment will be appreciated. Thanks (1 Reply)
Discussion started by: simhab
1 Replies

2. UNIX for Dummies Questions & Answers

keyboard entries in unix.....

hi, i have a few questions regarding keyboard entry in unix... 1) sometimes, when i type , nothing appears in the screen. i am doing a telnet session. 2) how to create a buffer session of the entries that i have typed so that i pressed one of the arrows key (for example), then the previous... (9 Replies)
Discussion started by: yls177
9 Replies

3. Solaris

CZ/Hungary Keyboard

Hi All We have a PC (WinXp) with hu-Keyboard. If we do a telnet to a Solaris 8 Machine. Solaris 8 cannot recognize all Keys correctly. What can I do. I have set the LANG variable to hu, besides I have tried "loadkeys hungary_5" Nothing doesn't work Maybe someone have a Solution for... (0 Replies)
Discussion started by: paho
0 Replies

4. Solaris

Czech Keyboard

Hi all, I want to connect via a Netterm100 (alpha net). to a Solaris 8 Server. I use a CZECH Keyoard. The problem is that the solaris-server cannot recognize the CZ-Keys. What should I change that the CZ-Keyboard runs. Many thanx (1 Reply)
Discussion started by: paho
1 Replies

5. UNIX for Dummies Questions & Answers

find usable keyboard and mouse for UNIX spac machine. Help

I have got a SunBlade150 box. But I don't have Sun UNIX keyboard and mouse to hook up with the machine. I know some other IBM compitable keyboard and mouse can be used on Sun UNIX box. If any one has the same situation or experience, please advise me the type, FCC ID and other information on the... (2 Replies)
Discussion started by: duke0001
2 Replies

6. UNIX for Dummies Questions & Answers

Problem getting vertical bar with British keyboard layout on US (physical) keyboard

Hi, I've got a bit of a ridiculous problem and wasn't sure where to post it. I need to use the vertical bar for piping in Bash but, as per the title, am using a UK layout on a US (physical) keyboard which doesn't have a key for it in the place I'd expect. I've tried using xbindkeys and Unicode... (7 Replies)
Discussion started by: crunchgargoyle
7 Replies

7. UNIX for Dummies Questions & Answers

How to send keyboard inputs toa UNIX command executed from a shell script?

I have a unix command that prompts for 'y'. How do I run this from my shell script? (4 Replies)
Discussion started by: Sree10
4 Replies
glutKeyboardUpFunc(3GLUT)					       GLUT						 glutKeyboardUpFunc(3GLUT)

NAME
glutKeyboardUpFunc - sets the keyboard up (key release) callback for the current window. SYNTAX
void glutKeyboardUpFunc(void (*func)(unsigned char key, int x, int y)); ARGUMENTS
func The new keyboard up callback function. DESCRIPTION
glutKeyboardFunc sets the keyboard up (key release) callback for the current window. When a user types into the window, each key release matching an ASCII character will generate a keyboard up callback. The key callback parameter is the generated ASCII character. The state of modifier keys such as Shift cannot be determined directly; their only effect will be on the returned ASCII data. The x and y callback parameters indicate the mouse location in window relative coordinates when the key was pressed. When a new window is created, no keyboard callback is initially registered, and ASCII key strokes in the window are ignored. Passing NULL to glutKeyboardFunc disables the generation of keyboard callbacks. During a keyboard up callback, glutGetModifiers may be called to determine the state of modifier keys when the keystroke generating the callback occurred. To avoid the reporting of key release/press pairs due to auto repeat, use glutIgnoreKeyRepeat to ignore auto repeated keystrokes. There is no guarantee that the keyboard press callback will match the exact ASCII character as the keyboard up callback. For example, the key down may be for a lowercase b, but the key release may report an uppercase B if the shift state has changed. The same applies to sym- bols and control characters. The precise behavior is window system dependent. Use glutSpecialUpFunc for a means to detect non-ASCII key releases. SEE ALSO
glutKeyboardFunc, glutSpecialUpFunc, glutSpecialFunc, glutCreateWindow, glutMouseFunc, glutSpaceballButtonFunc, glutButtonBoxFunc, glut- TabletButtonFunc, glutGetModifiers, glutIgnoreKeyRepeat AUTHOR
Mark J. Kilgard (mjk@nvidia.com) GLUT
3.7 glutKeyboardUpFunc(3GLUT)
All times are GMT -4. The time now is 02:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy