/[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.12 by okuji, Sun Oct 27 23:59:53 2002 UTC revision 1.13 by okuji, Fri Nov 29 20:39:24 2002 UTC
# Line 23  Line 23 
23  #include <shared.h>  #include <shared.h>
24  #include <serial.h>  #include <serial.h>
25  #include <term.h>  #include <term.h>
26    #include <terminfo.h>
27    
28  /* An input buffer.  */  /* An input buffer.  */
29  static char input_buf[8];  static char input_buf[8];
# Line 401  void Line 402  void
402  serial_gotoxy (int x, int y)  serial_gotoxy (int x, int y)
403  {  {
404    keep_track = 0;    keep_track = 0;
405    grub_printf ("\e[%d;%dH", y + 1, x + 1);    ti_cursor_address (x, y);
406    keep_track = 1;    keep_track = 1;
407        
408    serial_x = x;    serial_x = x;
# Line 412  void Line 413  void
413  serial_cls (void)  serial_cls (void)
414  {  {
415    keep_track = 0;    keep_track = 0;
416    grub_printf ("\e[H\e[J");    ti_clear_screen ();
417    keep_track = 1;    keep_track = 1;
418        
419    serial_x = serial_y = 0;    serial_x = serial_y = 0;
# Line 422  void Line 423  void
423  serial_setcolorstate (color_state state)  serial_setcolorstate (color_state state)
424  {  {
425    keep_track = 0;    keep_track = 0;
426    grub_printf ("\e[%cm", (state == COLOR_STATE_HIGHLIGHT) ? '7' : '0');    if (state == COLOR_STATE_HIGHLIGHT)
427        ti_enter_standout_mode ();
428      else
429        ti_exit_standout_mode ();
430    keep_track = 1;    keep_track = 1;
431  }  }
432    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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