5 #ifndef COM32_LIB_SYS_ANSI_H
6 #define COM32_LIB_SYS_ANSI_H
11 #define ANSI_MAX_PARMS 16
23 } __attribute__ ((packed
));
26 enum ansi_state state
;
27 int nparms
; /* Number of parameters seen */
28 int parms
[ANSI_MAX_PARMS
];
29 bool pvt
; /* Private code? */
31 struct curxy saved_xy
;
32 uint8_t cindex
; /* SOH color index */
36 bool vtgraphics
; /* VT graphics on/off */
46 void (*erase
) (const struct term_state
* st
, int x0
, int y0
, int x1
,
48 void (*write_char
) (int x
, int y
, uint8_t ch
, const struct term_state
* st
);
49 void (*showcursor
) (const struct term_state
* st
);
50 void (*scroll_up
) (const struct term_state
* st
);
51 void (*set_cursor
) (int x
, int y
, bool visible
);
56 int rows
, cols
; /* Screen size */
58 struct term_state
*ts
;
59 const struct ansi_ops
*op
;
62 void __ansi_init(const struct term_info
*ti
);
63 void __ansi_putchar(const struct term_info
*ti
, uint8_t ch
);
64 void __ansicon_beep(void);
66 #endif /* COM32_LIB_SYS_ANSI_H */