]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 10 May 2013 12:07:41 +0000 (14:07 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 10 May 2013 12:07:41 +0000 (14:07 +0200)
misnomer.

ChangeLog
grub-core/term/terminfo.c

index 33d1265cc5e1f4217cc4ac690ceb7903d3ae105b..89bcec3a052fedfa7938e3fab1bdcb7fa40fea67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
+       misnomer.
+
 2013-05-08  Andrey Borzenkov <arvidjaar@gmail.com>
 
        * docs/grub.texi (Network): Add description of net_default_interface,
index a46bb4b277067d677644a8746b6471e26e77403a..37e9482556b45ca0417fe7ddab400fca843a7405 100644 (file)
@@ -39,8 +39,8 @@
 
 GRUB_MOD_LICENSE ("GPLv3+");
 
-#define ANSI_C0 0x9b
-#define ANSI_C0_STR "\x9b"
+#define ANSI_CSI 0x9b
+#define ANSI_CSI_STR "\x9b"
 
 static struct grub_term_output *terminfo_outputs;
 
@@ -132,14 +132,14 @@ grub_terminfo_set_current (struct grub_term_output *term,
   if (grub_strcmp ("arc", str) == 0)
     {
       data->name              = grub_strdup ("arc");
-      data->gotoxy            = grub_strdup (ANSI_C0_STR "%i%p1%d;%p2%dH");
-      data->cls               = grub_strdup (ANSI_C0_STR "2J");
-      data->reverse_video_on  = grub_strdup (ANSI_C0_STR "7m");
-      data->reverse_video_off = grub_strdup (ANSI_C0_STR "0m");
+      data->gotoxy            = grub_strdup (ANSI_CSI_STR "%i%p1%d;%p2%dH");
+      data->cls               = grub_strdup (ANSI_CSI_STR "2J");
+      data->reverse_video_on  = grub_strdup (ANSI_CSI_STR "7m");
+      data->reverse_video_off = grub_strdup (ANSI_CSI_STR "0m");
       data->cursor_on         = 0;
       data->cursor_off        = 0;
-      data->setcolor          = grub_strdup (ANSI_C0_STR "3%p1%dm"
-                                            ANSI_C0_STR "4%p2%dm");
+      data->setcolor          = grub_strdup (ANSI_CSI_STR "3%p1%dm"
+                                            ANSI_CSI_STR "4%p2%dm");
       return grub_errno;
     }
 
@@ -427,7 +427,7 @@ grub_terminfo_readkey (struct grub_term_input *term, int *keys, int *len,
     }
   *len = 1;
   keys[0] = c;
-  if (c != ANSI_C0 && c != '\e')
+  if (c != ANSI_CSI && c != '\e')
     {
       /* Backspace: Ctrl-h.  */
       if (c == 0x7f)