jos/kern/ansi.h

21 lines
253 B
C
Raw Normal View History

#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