5 #ifndef COM32_LIB_SYS_ANSI_H
6 #define COM32_LIB_SYS_ANSI_H
10 #define ANSI_MAX_PARMS 16
22 } __attribute__((packed
));
26 int attr
; /* Current display attribute */
27 int cindex
; /* SOH color index */
28 int vtgraphics
; /* VT graphics on/off */
36 struct curxy saved_xy
;
38 enum ansi_state state
;
39 int pvt
; /* Private code? */
40 int nparms
; /* Number of parameters seen */
41 int parms
[ANSI_MAX_PARMS
];
46 void (*erase
)(const struct term_state
*st
, int x0
, int y0
, int x1
, int y1
);
47 void (*write_char
)(int x
, int y
, uint8_t ch
, const struct term_state
*st
);
48 void (*showcursor
)(const struct term_state
*st
);
49 void (*scroll_up
)(const struct term_state
*st
);
50 void (*set_cursor
)(int x
, int y
, int visible
);
54 int rows
, cols
; /* Screen size */
56 struct term_state
*ts
;
57 const struct ansi_ops
*op
;
60 void __ansi_init(const struct term_info
*ti
);
61 void __ansi_putchar(const struct term_info
*ti
, uint8_t ch
);
63 #endif /* COM32_LIB_SYS_ANSI_H */