aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/lib-ansi.h
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-03-31 21:28:05 +0200
committerErwan Velu <erwan.velu@free.fr>2009-03-31 21:28:05 +0200
commit24f9f05813c4b130d5a18522e20e059f1b36cd8a (patch)
tree8f91e772871d2fcb951a911e0af04808ee09c5b4 /com32/hdt/lib-ansi.h
parenta497465a84d9d473187ef3827b47648071cac379 (diff)
downloadsyslinux-24f9f05813c4b130d5a18522e20e059f1b36cd8a.tar.gz
syslinux-24f9f05813c4b130d5a18522e20e059f1b36cd8a.tar.xz
syslinux-24f9f05813c4b130d5a18522e20e059f1b36cd8a.zip
hdt: Adding lib-ansi to manage ansi escape codes
Impact: code is easier to read Basic implementation of ansi escape codes. This make code easier to read.
Diffstat (limited to 'com32/hdt/lib-ansi.h')
-rw-r--r--com32/hdt/lib-ansi.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/com32/hdt/lib-ansi.h b/com32/hdt/lib-ansi.h
new file mode 100644
index 00000000..2a17766f
--- /dev/null
+++ b/com32/hdt/lib-ansi.h
@@ -0,0 +1,43 @@
+/* ----------------------------------------------------------------------- *
+ *
+ * Copyright 2009 Erwan Velu - All Rights Reserved
+ *
+ * Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
+ * files (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use,
+ * copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom
+ * the Software is furnished to do so, subject to the following
+ * conditions:
+ *
+ * The above copyright notice and this permission notice shall
+ * be included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * -----------------------------------------------------------------------
+ */
+
+#ifndef DEFINE_LIB_ANSI_H
+#define DEFINE_LIB_ANSI_H
+void display_cursor(bool status);
+void clear_end_of_line();
+void move_cursor_left(int count);
+void move_cursor_right(int count);
+void clear_line();
+void clear_beginning_of_line();
+void move_cursor_to_column(int count);
+void move_cursor_to_next_line();
+void disable_utf8();
+void set_g1_special_char();
+void set_us_g0_charset();
+void clear_entire_screen();
+#endif