Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cmd:prompt [2012/03/24 20:30]
mcb30
cmd:prompt [2012/03/28 23:32] (current)
mcb30
Line 3: Line 3:
 ===== Synopsis ===== ===== Synopsis =====
  
-    prompt [--key <keycode>] [--timeout <​timeout>​] [<​text>​]+    prompt [--key <key>] [--timeout <​timeout>​] [<​text>​]
  
 ===== Examples ===== ===== Examples =====
Line 14: Line 14:
  
     prompt Press any key to continue     prompt Press any key to continue
 +
 +=== Exit script if '​q'​ is pressed ===
 +
 +    prompt --key q Press '​q'​ to quit && exit ||
  
 === Exit script unless F12 is pressed within 2 seconds === === Exit script unless F12 is pressed within 2 seconds ===
Line 31: Line 35:
 The displayed text will be cleared when the user presses a key, or if the timeout expires. The displayed text will be cleared when the user presses a key, or if the timeout expires.
  
-The keycodes used for the ''​%%--key%%''​ option ​are extended ASCII character ​values.  The values for special keys such as ''​Ctrl-B''​ and ''​F12''​ are defined in [[http://​git.ipxe.org/​ipxe.git/​blob/​HEAD:/​src/​include/​ipxe/​keys.h|include/​ipxe/​keys.h]] within the iPXE source code.  Some useful values are:+The ''​%%--key%%''​ option ​can be specified as a character literal (such as ''​q''​ or ''​@''​) or as an extended ASCII character ​value.  The values for special keys such as ''​Ctrl-B''​ and ''​F12''​ are defined in [[http://​git.ipxe.org/​ipxe.git/​blob/​HEAD:/​src/​include/​ipxe/​keys.h|include/​ipxe/​keys.h]] within the iPXE source code.  Some useful values are:
  
 ^ Key      ^ Keycode ​  | ^ Key      ^ Keycode ​  |
cmd/prompt.txt ยท Last modified: 2012/03/28 23:32 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL http://ipxe.org
References to "iPXE" may not be altered or removed.