08-29-2010
Starting terminal with shortcut key combination
How can the shortcut keys be defined that would open up a terminal window? When using a kvm switch, the mouse sometimes does not work, but the keyboard does, and by opening up a terminal window using a shortcut key combination, the mouse can be restarted by entering the predefined mouserestart alias.
Operating system is FreeBSD by the way.
Thank you in advance
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I am using the Korn-Shell (ksh) and would like to know all the shortcut keys. For example: Shift + Insert etc.
Thank you very much.
Take care (0 Replies)
Discussion started by: --crimson--
0 Replies
2. SuSE
I am using informix RDBMS over SUSE LINUX. In linux if you press control-c it acts as an interrupt key. In my program I have used control-c to perform certain functions but it is being overriden by interrupt function of control-c key combination of SUSE LINUX. Kindly suggest me a solution by which... (1 Reply)
Discussion started by: V.V.KUMAR
1 Replies
3. Programming
Could anybody tell me how I can detect a particular key combination and perform a particular task on that event. e.g. if I press Ctrl + L on the shell then it clears the screen. Please tell me how it can be performed on my shell.
And how the Arrow Keys can be detected. I tried but pressing a key... (11 Replies)
Discussion started by: mobile01
11 Replies
4. Shell Programming and Scripting
Hello all,
I would like a message to be displayed on the shell when someone opens up the terminal - something like a welcome msg with date and time. I know how to do this by running the shell commands but dont know how to display it when a user opens up the terminal?
Thanks in advance (27 Replies)
Discussion started by: mrudula009
27 Replies
5. OS X (Apple)
how can I do that?
I can paste a line with ctrl+p; but I dont know how to copy it?
ctrl+y - just deletes etc. (2 Replies)
Discussion started by: c_lady
2 Replies
6. Shell Programming and Scripting
I need to grab key combination from a bash script and store it in a variable. Is there any way to do this?
Thanks in advance! (1 Reply)
Discussion started by: prism1
1 Replies
7. Ubuntu
You probably know the answer to this, because I know it exists.
I have super long filenames with md5 hashes and I sucks to type the whole hash in the console. Because... just because :P
What is the shortcut for selecting a file in the current directory? Like you get a sort of loop through the... (1 Reply)
Discussion started by: hellfire1
1 Replies
8. Windows & DOS: Issues & Discussions
when I run C:\cygwin\bin\run C:\cygwin\bin\startxwin.exe it fires up a terminal by default. Can I eliminate that terminal and start the x server as a service silently and sits in my status bar just there? Thanks Jack (0 Replies)
Discussion started by: lucky7456969
0 Replies
9. Windows & DOS: Issues & Discussions
Dear All,
I want to run a shell script with out logging to putty but configuring it to a keyboard short cut it windows PC. Can this be done? I want this to rename a log in a specified folder in a system
Thanks (8 Replies)
Discussion started by: Chi_SL
8 Replies
10. Ubuntu
I am unfamiliar with below error and how to fix it, it happens when I start the terminal in Ubuntu 14.04.3. I do not send any command only press crtl+alt+T. It seems to indicate that something is missing from PATH but I’m not really sure what. Thank you :).
Command 'lesspipe' is... (24 Replies)
Discussion started by: cmccabe
24 Replies
LEARN ABOUT MOJAVE
glutkeyboardfunc
glutKeyboardFunc(3GLUT) GLUT glutKeyboardFunc(3GLUT)
NAME
glutKeyboardFunc - sets the keyboard callback for the current window.
SYNTAX
#include <GLUT/glut.h>
void glutKeyboardFunc(void (*func)(unsigned char key,
int x, int y));
ARGUMENTS
func The new keyboard callback function.
DESCRIPTION
glutKeyboardFunc sets the keyboard callback for the current window. When a user types into the window, each key press generating an ASCII
character will generate a keyboard 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 call-
backs.
During a keyboard callback, glutGetModifiers may be called to determine the state of modifier keys when the keystroke generating the call-
back occurred.
Use glutSpecialFunc for a means to detect non-ASCII key strokes.
SEE ALSO
glutKeyboardUpFunc, glutSpecialFunc, glutCreateWindow, glutMouseFunc, glutSpaceballButtonFunc, glutButtonBoxFunc, glutTabletButtonFunc,
glutGetModifiers
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT
3.7 glutKeyboardFunc(3GLUT)