getkey man page on Mandriva

Man page or keyword search:  
man Server   17060 pages
apropos Keyword Search (all sections)
Output format
Mandriva logo
[printable version]

getkey(1)							     getkey(1)

NAME
       getkey - wait until a key is pressed

SYNOPSIS
       getkey [OPTION]... [KEYS]

DESCRIPTION
       getkey  waits until one of KEYS is pressed.  If KEYS are not specified,
       any key is accepted.  KEYS are matched case-insensitive.

EXIT STATUS
       getkey exits with status 0 if one of the expected keys is pressed.   If
       invalid	arguments  are	specified,  getkey  exits with status 255.  If
       getkey is interrupted or the wait times out, getkey  exits  with	 other
       non-zero status.

OPTIONS
       -c, --wait SECONDS
	      Wait only for SECONDS seconds.  The default is 0, which means to
	      wait without a time limit.

       -i, --ignore-control-chars
	      Don't treat Ctrl+C and Ctrl+D specially.	When  this  option  is
	      not specified, these characters interrupt getkey.

       -m, --message MESSAGE
	      Display  MESSAGE while waiting.  The message is used as a format
	      string in sprintf(3), with a single argument, the number of sec‐
	      onds  left.   Typical  usage is therefore "Press a key within %d
	      seconds to ...".	If MESSAGE contains other format string direc‐
	      tives, the behavior is undefined and getkey may crash.

	      If  there is no time limit specified, the number of seconds left
	      is reported as 0.

				   Jan 2006			     getkey(1)
[top]

List of man pages available for Mandriva

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net