libpayload: remove trailing whitespace and run dos2unix
[coreboot.git] / payloads / libpayload / curses / PDCurses-3.4 / pdcurses / getch.c
index 87677bae2ef265c673653d96f4d22527a2046a3c..f37d69afd15aadc3ad7bc44cc987e611e62a292f 100644 (file)
@@ -27,13 +27,13 @@ RCSID("$Id: getch.c,v 1.72 2008/07/13 16:08:18 wmcbrine Exp $")
         int PDC_return_key_modifiers(bool flag);
 
   Description:
-        With the getch(), wgetch(), mvgetch(), and mvwgetch() functions, 
-        a character is read from the terminal associated with the window. 
-        In nodelay mode, if there is no input waiting, the value ERR is 
-        returned. In delay mode, the program will hang until the system 
-        passes text through to the program. Depending on the setting of 
-        cbreak(), this will be after one character or after the first 
-        newline.  Unless noecho() has been set, the character will also 
+        With the getch(), wgetch(), mvgetch(), and mvwgetch() functions,
+        a character is read from the terminal associated with the window.
+        In nodelay mode, if there is no input waiting, the value ERR is
+        returned. In delay mode, the program will hang until the system
+        passes text through to the program. Depending on the setting of
+        cbreak(), this will be after one character or after the first
+        newline.  Unless noecho() has been set, the character will also
         be echoed into the designated window.
 
         If keypad() is TRUE, and a function key is pressed, the token for
@@ -44,25 +44,25 @@ RCSID("$Id: getch.c,v 1.72 2008/07/13 16:08:18 wmcbrine Exp $")
         If nodelay(win, TRUE) has been called on the window and no input
         is waiting, the value ERR is returned.
 
-        ungetch() places ch back onto the input queue to be returned by 
+        ungetch() places ch back onto the input queue to be returned by
         the next call to wgetch().
 
-        flushinp() throws away any type-ahead that has been typed by the 
+        flushinp() throws away any type-ahead that has been typed by the
         user and has not yet been read by the program.
 
-        PDC_get_key_modifiers() returns the keyboard modifiers (shift, 
-        control, alt, numlock) effective at the time of the last getch() 
-        call, if PDC_save_key_modifiers(TRUE) has been called before the 
-        getch(). Use the macros PDC_KEY_MODIFIER_* to determine which 
-        modifier(s) were set. PDC_return_key_modifiers() tells getch() 
-        to return modifier keys pressed alone as keystrokes (KEY_ALT_L, 
+        PDC_get_key_modifiers() returns the keyboard modifiers (shift,
+        control, alt, numlock) effective at the time of the last getch()
+        call, if PDC_save_key_modifiers(TRUE) has been called before the
+        getch(). Use the macros PDC_KEY_MODIFIER_* to determine which
+        modifier(s) were set. PDC_return_key_modifiers() tells getch()
+        to return modifier keys pressed alone as keystrokes (KEY_ALT_L,
         etc.). These may not work on all platforms.
 
-        NOTE: getch() and ungetch() are implemented as macros, to avoid 
+        NOTE: getch() and ungetch() are implemented as macros, to avoid
         conflict with many DOS compiler's runtime libraries.
 
   Return Value:
-        These functions return ERR or the value of the character, meta 
+        These functions return ERR or the value of the character, meta
         character or function key token.
 
   Portability                                X/Open    BSD    SYS V
@@ -173,7 +173,7 @@ int wgetch(WINDOW *win)
     else
         if (win->_delayms)
         {
-            /* Can't really do millisecond intervals, so delay in 
+            /* Can't really do millisecond intervals, so delay in
                1/20ths of a second (50ms) */
 
             waitcount = win->_delayms / 50;
@@ -181,7 +181,7 @@ int wgetch(WINDOW *win)
                 waitcount = 1;
         }
 
-    /* refresh window when wgetch is called if there have been changes 
+    /* refresh window when wgetch is called if there have been changes
        to it and it is not a pad */
 
     if (!(win->_flags & _PAD) && ((!win->_leaveit &&
@@ -240,7 +240,7 @@ int wgetch(WINDOW *win)
             if (!win->_use_keypad)
                 key = -1;
 
-            /* filter mouse events; translate mouse clicks in the slk 
+            /* filter mouse events; translate mouse clicks in the slk
                area to function keys */
 
             else if (key == KEY_MOUSE)