Files

18 lines
607 B
C

#ifndef RETROTERM_CORE_H
#define RETROTERM_CORE_H
#define TC_ROWS 25
#define TC_MAXCOLS 80
struct Cell {unsigned char glyph,fg,bg;};
struct Terminal {
struct Cell cell[TC_MAXCOLS*TC_ROWS];unsigned char dirty[TC_MAXCOLS*TC_ROWS];
int cols,x,y,sx,sy,fg,bg,reverse,charset,petscii,wrap,scrolltop,scrollbottom;
int utfNeed,utfHave;unsigned long utfCode;unsigned char utfBytes[4];
int bell;
int esc,argc,arg[16],privatecsi,bold,pendingwrap;
};
void term_init(struct Terminal*,int);
void term_clear(struct Terminal*);
void term_dirty(struct Terminal*);
void term_feed(struct Terminal*,unsigned char);
#endif