21 lines
253 B
C
21 lines
253 B
C
|
#ifndef _ANSI_H_
|
||
|
#define _ANSI_H_
|
||
|
|
||
|
#include <inc/types.h>
|
||
|
|
||
|
struct AttrState {
|
||
|
uint8_t cattrs;
|
||
|
uint8_t attrs;
|
||
|
enum {
|
||
|
NORMAL,
|
||
|
ESC,
|
||
|
BRACKET,
|
||
|
COLOR_FG,
|
||
|
COLOR
|
||
|
} state;
|
||
|
};
|
||
|
|
||
|
void ansi_step(void (*putcf)(int), int c, struct AttrState* s);
|
||
|
|
||
|
#endif
|