~ubuntu-branches/ubuntu/intrepid/usplash/intrepid

« back to all changes in this revision

Viewing changes to usplash_write.8

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2008-02-12 11:25:48 UTC
  • Revision ID: james.westby@ubuntu.com-20080212112548-f4lc2223axzbuqct
Tags: 0.5.12
* Add new command "INPUTCHAR" which checks for a pending key press and
  reports it to the FIFO (empty string if no key was pressed). This is
  better than INPUTTIMEOUT for implementing things like "Press ESC to skip
  this step" after all. Documented the command in the manpage.
* libusplash.[hc]: Add flush_stdin() to clear stdin. Call it on usplash
  startup in main(), which fixes getting random key presses when calling
  usplash in a running system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
.TP
85
85
.BI INPUTTIMEOUT " timeout prompt"
86
86
Works in the same way as INPUT above, but returns the empty string
87
 
after the given number of deciseconds. Useful for polling for input
88
 
(such as "Press enter to skip") while doing something in the
89
 
background (such as running fsck).
 
87
after the given number of deciseconds. 
 
88
.\"
 
89
.TP
 
90
.BI INPUTCHAR
 
91
Checks for a single pending key press and writes the character to
 
92
/dev/.initramfs/usplash_outfifo. If no key was pressed, this will be
 
93
an empty string. Useful for polling for input (such as "Press ESC to
 
94
skip") while doing something in the background (such as running fsck).
90
95
.\"
91
96
.SH EXIT STATUS
92
97
.B usplash_write