/[grub]/grub/stage2/serial.c
ViewVC logotype

Diff of /grub/stage2/serial.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by jthomas, Thu Aug 22 05:59:55 2002 UTC revision 1.11 by okuji, Fri Sep 13 11:27:41 2002 UTC
# Line 260  serial_translate_key_sequence (void) Line 260  serial_translate_key_sequence (void)
260  }  }
261            
262  static  static
263  int fill_input_buf (void)  int fill_input_buf (int nowait)
264  {  {
265    int i;    int i;
266    
# Line 276  int fill_input_buf (void) Line 276  int fill_input_buf (void)
276            /* Reset the counter to zero, to wait for the same interval.  */            /* Reset the counter to zero, to wait for the same interval.  */
277            i = 0;            i = 0;
278          }          }
279          
280          if (nowait)
281            break;
282      }      }
283    
284    /* Translate some key sequences.  */    /* Translate some key sequences.  */
# Line 290  serial_getkey (void) Line 293  serial_getkey (void)
293  {  {
294    int c;    int c;
295        
296    while (! fill_input_buf ())    while (! fill_input_buf (0))
297      ;      ;
298    
299    c = input_buf[0];    c = input_buf[0];
# Line 304  serial_getkey (void) Line 307  serial_getkey (void)
307  int  int
308  serial_checkkey (void)  serial_checkkey (void)
309  {  {
310    if (fill_input_buf ())    if (fill_input_buf (1))
311      return input_buf[0];      return input_buf[0];
312    
313    return -1;    return -1;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26