summaryrefslogtreecommitdiff
path: root/com32/lib/sys
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:24 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:24 -0700
commit6aa75ed6263d4b9c926d1e9fd352841b9b50c685 (patch)
treee76885cd1371f80e52046161fe918c2df34e5af9 /com32/lib/sys
parent287a7bcfdd5ecad26b4ba12b3af8e100a8395c1c (diff)
downloadsyslinux-6aa75ed6263d4b9c926d1e9fd352841b9b50c685.tar.gz
Run Nindent on com32/lib/sys/ansi.h
Automatically reformat com32/lib/sys/ansi.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/sys')
-rw-r--r--com32/lib/sys/ansi.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/com32/lib/sys/ansi.h b/com32/lib/sys/ansi.h
index da06903c..0d1f1025 100644
--- a/com32/lib/sys/ansi.h
+++ b/com32/lib/sys/ansi.h
@@ -10,51 +10,51 @@
#define ANSI_MAX_PARMS 16
enum ansi_state {
- st_init,
- st_esc,
- st_csi,
- st_tbl,
- st_tblc,
+ st_init,
+ st_esc,
+ st_csi,
+ st_tbl,
+ st_tblc,
};
struct curxy {
- uint8_t x, y;
-} __attribute__((packed));
+ uint8_t x, y;
+} __attribute__ ((packed));
struct term_state {
- struct curxy xy;
- int cindex; /* SOH color index */
- int vtgraphics; /* VT graphics on/off */
- int intensity;
- int underline;
- int blink;
- int reverse;
- int fg;
- int bg;
- int autocr;
- struct curxy saved_xy;
- int cursor;
- enum ansi_state state;
- int pvt; /* Private code? */
- int nparms; /* Number of parameters seen */
- int parms[ANSI_MAX_PARMS];
+ struct curxy xy;
+ int cindex; /* SOH color index */
+ int vtgraphics; /* VT graphics on/off */
+ int intensity;
+ int underline;
+ int blink;
+ int reverse;
+ int fg;
+ int bg;
+ int autocr;
+ struct curxy saved_xy;
+ int cursor;
+ enum ansi_state state;
+ int pvt; /* Private code? */
+ int nparms; /* Number of parameters seen */
+ int parms[ANSI_MAX_PARMS];
};
-
struct ansi_ops {
- void (*erase)(const struct term_state *st, int x0, int y0, int x1, int y1);
- void (*write_char)(int x, int y, uint8_t ch, const struct term_state *st);
- void (*showcursor)(const struct term_state *st);
- void (*scroll_up)(const struct term_state *st);
- void (*set_cursor)(int x, int y, int visible);
- void (*beep)(void);
+ void (*erase) (const struct term_state * st, int x0, int y0, int x1,
+ int y1);
+ void (*write_char) (int x, int y, uint8_t ch, const struct term_state * st);
+ void (*showcursor) (const struct term_state * st);
+ void (*scroll_up) (const struct term_state * st);
+ void (*set_cursor) (int x, int y, int visible);
+ void (*beep) (void);
};
struct term_info {
- int rows, cols; /* Screen size */
- int disabled;
- struct term_state *ts;
- const struct ansi_ops *op;
+ int rows, cols; /* Screen size */
+ int disabled;
+ struct term_state *ts;
+ const struct ansi_ops *op;
};
void __ansi_init(const struct term_info *ti);