10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm working in a UNIX box that's owned by a vendor. They have it set up by State, meaning when I need to program script related to certain States, I type in, for example, "CA", it goes to a whole other terminal:
ddqsw:pts/2:login
miller CA
TERM = ( vt100 )
When I do this I have to hit... (7 Replies)
Discussion started by: shorty
7 Replies
2. Shell Programming and Scripting
Hi Experts,
I have a script in which I want to disable the "Enter" key press. Actually my script executes some process in background. So, till that background process is running, I don't want "Enter" key to be pressed by user. Is this can be achieved using trap command? (6 Replies)
Discussion started by: R0H0N
6 Replies
3. Shell Programming and Scripting
My problem is that i have to connect Linux server. I can connect it with SSH but because of the software of the Linux server, i need to press enter and after ctrl+D. Therefore, I need to write a script that should press enter and ctrl+D. How can i write it in KSH shell script. HELP ME! (7 Replies)
Discussion started by: fozay
7 Replies
4. Shell Programming and Scripting
Hi,
When I run script on Sun Solaris (sassetup), it prompts to "Press Enter To Continue".
Now I want to automate this, ie put sassetup in a script file. So, when I run this file, it should be executed automatically without waiting for anyone to press Enter Key.
I have tried the following... (1 Reply)
Discussion started by: sajjunaqvi
1 Replies
5. Shell Programming and Scripting
Hello All,
i have a script to get input from the user like bellow,
read -p "Do you want to continue (y/n) : " status
i want to identify the pressing of Enter Key with out giving any value for the above statement and i want get the status if we press Enter key during run time.
How to... (0 Replies)
Discussion started by: tsaravanan
0 Replies
6. Shell Programming and Scripting
Using SCO 5, Ksh here
I am trying to automate some process that i am doing manually.
During some point of time, I will have to press enter to clear away some messages.
This is how I do manually.
*one command*
r
r
r
r
r
I enter the command once, then press enter key 1 more... (6 Replies)
Discussion started by: khaos83_2000
6 Replies
7. Shell Programming and Scripting
hi ,
What is the trap signal for "ENTER key"? (4 Replies)
Discussion started by: Sreejith_VK
4 Replies
8. UNIX for Advanced & Expert Users
without pressing the enter key ..manually...
how can we read the enter key ..from the shell script..so that the script termintes automatically.
eg:
telnet a.b.c.d xxxx
now " how to read the enter key" tho terminate the script (1 Reply)
Discussion started by: bishweshwar
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Whenever i press the backspace key, a new line appears, i.e. it works like a enter key. :confused:
Thanks (2 Replies)
Discussion started by: vibhor_agarwali
2 Replies
10. Shell Programming and Scripting
Hi ,
I do the following :
]echo "Do you want to say yes or no ?(y/n):\c"
read ans
here 'n' is the default value.that means if the user press ENTER key then it should be 'n' .
Now how do i know that the user has pressed ENTER key.What will be stored in my variable 'ans'. (4 Replies)
Discussion started by: sars
4 Replies
glutSpecialUpFunc(3GLUT) GLUT glutSpecialUpFunc(3GLUT)
NAME
glutSpecialUpFunc - sets the special keyboard up (key release) callback for the current window.
SYNTAX
#include <GLUT/glut.h>
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)