You can turn off the enter key for a foreground process with
This will prevent cursor movement caused by the enter key but does not work when the process is in background (but the user can't do anything anyway while your code is running so why not run in foreground?).
hi
i´m making a program, and i would like to know how can i know what key was pressed. i'm using Sun5.7 and C.
is there a keypress/keypressed function in C?
how can i know recognize the keys (enter, tab, shift, etc.)?
can i recognize two keys ? (shift+A, ctrl+C, etc)
any idea.. thanks (4 Replies)
I want my program(ksh) to execute further only if the return key is pressed.
Please help.
i have already tried "\n", "\r", "^M" .
Thanks in advance (2 Replies)
hi folks,
i am using sun solaris, when i press escape key in putty/netterm screen will blink for a second, plese let me know where this setting is done by my admin, what i feel is my admin must have set some control key for this so that screen will refresh each time i press escape key. please let... (1 Reply)
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)
Hello everyone.
I'm trying to create a script that waits a given amount of time unless a given key is pressed. I found a very useful thread here
https://www.unix.com/shell-programming-scripting/59605-trap-key-press-script.html
however, I cannot figure out a way of avoiding the keypress if the... (2 Replies)
Hi all,
I need to know how to test a pressed key is arrowup or arrowdown and etc..
I found that the "echo" won't print anything if i enter the arrowup in the below code:
read
echo "you pressed $REPLY"
Then i find a way to achieve my goal.
1 #! /bin/bash
2
3 ARROWUP='\;then... (4 Replies)
Hi,
I have to get into BIOS and disable onbaord NICS for an IBM server, can someone please help me out.
I tried hitting F1 when reboot to get into BIOS, but it seems like a setup screen and I dont see any option to disable NICS?
Thanks
Sam (0 Replies)
I have a popup window that appears on every boot up.
I would like to have it dismissed automatically each time instead of having to hit the enter key.
I thought I could write a script that would execute on startup.
I tried this
xdotool key return
andy@7_~/Downloads$ xdotool key ... (7 Replies)
Discussion started by: drew77
7 Replies
LEARN ABOUT FREEBSD
keylogout
KEYLOGOUT(1) BSD General Commands Manual KEYLOGOUT(1)NAME
keylogout -- delete stored secret key
SYNOPSIS
keylogout [-f]
DESCRIPTION
The keylogout utility deletes the key stored by the key server process keyserv(8) to be used by any secure network services, such as NFS.
Further access to the key is revoked, however current session keys may remain valid till they expire, or are refreshed. This option will
cause any background jobs that need secure RPC services to fail, and any scheduled at jobs that need the key to fail. Also since only one
copy is kept on a machine of the key, it is a bad idea to place this in your .logout file since it will affect other sessions on the same
machine.
The following option is available:
-f Forget the rootkey. This will break secure NFS if it is done on a server.
SEE ALSO chkey(1), keylogin(1), login(1), publickey(5), keyserv(8), newkey(8)BSD April 15, 1989 BSD