Mercurial > hg > forks > pwpunix
view pwplib/tty.h @ 35:b9d679965320
Code cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 24 May 2010 01:22:33 +0300 |
parents | c60e531d19cd |
children | 85671798fdb3 |
line wrap: on
line source
#include "pwplib.h" #ifndef __TTY_C extern #endif struct { int fd; int width; int height; int type,minor; long int vtcap; int att,cx,cy; /* getridoff */ u8*prevbuf; #ifdef __POSIX__ struct termios setup; #endif int maxframedata; int framedelay; }pwp_tty; /* major types */ enum { TTY_DUMB=0, TTY_XVT_MONO, TTY_XVT_COLOR, TTY_VT_COLOR_IBM, TTY_VT_COLOR, TTY_VT1XX, /* vt100, vt102 etc */ TTY_ANSISYS, /* ansi, ansi-bbs etc */ TTY_LINUX, /* linux */ TTY_VT2XX /* vtnnn where nnn>=200 */ }; int tty_init(void); void tty_write(u8 *data, int lgt);