Mercurial > hg > forks > pwpunix
view pwplib/tty.h @ 71:a87eb778f225
Improvements to the MinGW crossbuild. Should now build with default tools
from Debian mingw packages, though you need Win32 version of libSDL with the
necessary headers and so on in addition. 64-bit builds not tested and
probably won't work. Tested on Debian 7.0, earlier won't work.
binutils-mingw-w64-i686 gcc-mingw-w64-i686 mingw-w64-i686-dev
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 14 Aug 2012 03:08:10 +0300 |
parents | 7d4f6c33a6ac |
children |
line wrap: on
line source
#ifndef PWP_TTY_H #define PWP_TTY_H #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(void *data, int lgt); #ifdef DRIVE_TTY_DEC void tty_vt1xx_init(); void tty_vt_dump_attr(); void tty_vt_initstring(); #endif #ifdef HAVE_TTYSTUFF int tty_dumb_init(); #endif #ifdef DRIVE_TTY void tty_ansicol_prep_attr(void); void tty_ansicol_dump_attr(void); void tty_ansicol_init(void); void tty_ansisys_init(void); #endif #endif /* PWP_TTY_H */