For SOH codes, always issue a leading zero reset syslinux-3.30-pre5
authorH. Peter Anvin <hpa@zytor.com>
Wed, 13 Sep 2006 04:13:07 +0000 (21:13 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 13 Sep 2006 04:13:07 +0000 (21:13 -0700)
README.menu
com32/lib/sys/ansi.c
com32/lib/sys/xserial_write.c
com32/modules/menumain.c

index 2209ba1..5d7b0fc 100644 (file)
@@ -181,21 +181,21 @@ MENU COLOR element ansi foreground background
        The current defaults are:
 
        timeout_msg
-       screen      0;37;40    #80ffffff #00000000
-       border      0;30;44    #40000000 #00000000
+       screen      37;40      #80ffffff #00000000
+       border      30;44      #40000000 #00000000
        title       1;36;44    #c00090f0 #00000000
-       unsel       0;37;44    #90ffffff #00000000
+       unsel       37;44      #90ffffff #00000000
        hotkey      1;37;44    #ffffffff #00000000
-       sel         0;7;37;40  #cf101010 #20ff8000
+       sel         7;37;40    #cf101010 #20ff8000
        hotsel      1;7;37;40  #ff353535 #20ff8000
-       scrollbar   0;30;44    #40000000 #00000000
-       tabmsg      0;31;40    #90ffff00 #00000000
+       scrollbar   30;44      #40000000 #00000000
+       tabmsg      31;40      #90ffff00 #00000000
        cmdmark     1;36;40    #c000ffff #00000000
-       cmdline     0;37;40    #c0ffffff #00000000
-       pwdborder   0;30;47    #80ffffff #20ffffff
-       pwdheader   0;31;47    #80ff8080 #20ffffff
-       pwdentry    0;30;47    #80ffffff #20ffffff
-       timeout_msg 0;37;40    #80ffffff #00000000
+       cmdline     37;40      #c0ffffff #00000000
+       pwdborder   30;47      #80ffffff #20ffffff
+       pwdheader   31;47      #80ff8080 #20ffffff
+       pwdentry    30;47      #80ffffff #20ffffff
+       timeout_msg 37;40      #80ffffff #00000000
        timeout     1;37;40    #c0ffffff #00000000
 
 
index e47bf1e..64e7f34 100644 (file)
@@ -408,6 +408,8 @@ void __ansi_putchar(const struct term_info *ti, uint8_t ch)
          p = console_color_table[st->parms[0]].ansi;
          st->state = st_esc;
          __ansi_putchar(ti, '[');
+         __ansi_putchar(ti, '0');
+         __ansi_putchar(ti, ';');
          while (*p)
            __ansi_putchar(ti, *p++);
          __ansi_putchar(ti, 'm');
index 6b3fbaf..f119083 100644 (file)
@@ -98,6 +98,8 @@ ssize_t __xserial_write(struct file_info *fp, const void *buf, size_t count)
        if (ncolor < console_color_table_size) {
          emit('\033');
          emit('[');
+         emit('0');
+         emit(';');
          for (p = console_color_table[ncolor].ansi; *p; p++)
            emit(*p);
          emit('m');
index 91ee5d4..10da08a 100644 (file)
@@ -60,21 +60,21 @@ int (*draw_background)(const char *filename);
  */
 
 static const struct color_table default_color_table[] = {
-  { "screen",      "0;37;40",   0x80ffffff, 0x00000000 },
-  { "border",      "0;30;44",   0x40000000, 0x00000000 },
+  { "screen",      "37;40",     0x80ffffff, 0x00000000 },
+  { "border",      "30;44",     0x40000000, 0x00000000 },
   { "title",       "1;36;44",   0xc00090f0, 0x00000000 },
-  { "unsel",       "0;37;44",   0x90ffffff, 0x00000000 },
+  { "unsel",       "37;44",     0x90ffffff, 0x00000000 },
   { "hotkey",      "1;37;44",   0xffffffff, 0x00000000 },
-  { "sel",         "0;7;37;40", 0xcf101010, 0x20ff8000 },
-  { "hotsel",      "1;7;37;40", 0xff353535, 0x20ff8000 },
-  { "scrollbar",   "0;30;44",   0x40000000, 0x00000000 },
-  { "tabmsg",      "0;31;40",   0x90ffff00, 0x00000000 },
+  { "sel",         "7;37;40",   0xcf101010, 0x20ff8000 },
+  { "hotsel",      "7;37;40",   0xff353535, 0x20ff8000 },
+  { "scrollbar",   "30;44",     0x40000000, 0x00000000 },
+  { "tabmsg",      "31;40",     0x90ffff00, 0x00000000 },
   { "cmdmark",     "1;36;40",   0xc000ffff, 0x00000000 },
-  { "cmdline",     "0;37;40",   0xc0ffffff, 0x00000000 },
-  { "pwdborder",   "0;30;47",   0x80ffffff, 0x20ffffff },
-  { "pwdheader",   "0;31;47",   0x80ff8080, 0x20ffffff },
-  { "pwdentry",    "0;30;47",   0x80ffffff, 0x20ffffff },
-  { "timeout_msg", "0;37;40",   0x80ffffff, 0x00000000 },
+  { "cmdline",     "37;40",     0xc0ffffff, 0x00000000 },
+  { "pwdborder",   "30;47",     0x80ffffff, 0x20ffffff },
+  { "pwdheader",   "31;47",     0x80ff8080, 0x20ffffff },
+  { "pwdentry",    "30;47",     0x80ffffff, 0x20ffffff },
+  { "timeout_msg", "37;40",     0x80ffffff, 0x00000000 },
   { "timeout",     "1;37;40",   0xc0ffffff, 0x00000000 },
 };