Main Page   Class Hierarchy   Compound List   File List   Compound Members  

vt.h

00001 #ifndef VT_H
00002 #define VT_H
00003 
00004 #include "misc.h"
00005 
00006 #define W               40
00007 #define H               25
00008 #define BAD_CHAR        0xb8    /* substitute for chars with bad parity */
00009 
00010 extern int alevt_debug;
00011 
00012 struct vt_event
00013 {
00014     int type;
00015     void *resource;     /* struct xio_win *, struct vbi *, ... */
00016     int i1, i2, i3, i4;
00017     void *p1;
00018 };
00019 
00020 #define EV_CLOSE        1
00021 #define EV_KEY          2       /* i1:KEY_xxx  i2:shift-flag */
00022 #define EV_MOUSE        3       /* i1:button  i2:shift-flag i3:x  i4:y */
00023 #define EV_SELECTION    4       /* i1:len  p1:data */
00024 #define EV_PAGE         5       /* p1:vt_page   i1:query-flag */
00025 #define EV_HEADER       6       /* i1:pgno  i2:subno  i3:flags  p1:data */
00026 #define EV_XPACKET      7       /* i1:mag  i2:pkt  i3:errors  p1:data */
00027 #define EV_RESET        8       /* ./. */
00028 #define EV_TIMER        9       /* ./. */
00029 
00030 #define KEY_F(i)        (1000+i)
00031 #define KEY_LEFT        2001
00032 #define KEY_RIGHT       2002
00033 #define KEY_UP          2003
00034 #define KEY_DOWN        2004
00035 #define KEY_PUP         2005
00036 #define KEY_PDOWN       2006
00037 #define KEY_DEL         2007
00038 #define KEY_INS         2008
00039 
00040 struct vt_page
00041 {
00042     int pgno, subno;    /* the wanted page number */
00043     int lang;           /* language code */
00044     int flags;          /*  misc flags (see PG_xxx below) */
00045     int errors;         /*  number of single bit errors in page */
00046     u32 lines;          /*  1 bit for each line received */
00047     u8 data[25][40];    /*  page contents */
00048     int flof;           /*  page has FastText links */
00049     struct {
00050         int pgno;
00051         int subno;
00052     } link[6];          /*  FastText links (FLOF) */
00053 };
00054 
00055 #define PG_SUPPHEADER   0x01    /*  C7  row 0 is not to be displayed */
00056 #define PG_UPDATE       0x02    /*  C8  row 1-28 has modified (editors flag) */
00057 #define PG_OUTOFSEQ     0x04    /*  C9  page out of numerical order */
00058 #define PG_NODISPLAY    0x08    /*  C10 rows 1-24 is not to be displayed */
00059 #define PG_MAGSERIAL    0x10    /*  C11 serial trans. (any pkt0 terminates page) */
00060 #define PG_ERASE        0x20    /*  C4  clear previously stored lines */
00061 #define PG_NEWSFLASH    0x40    /*  C5  box it and insert into normal video pict. */
00062 #define PG_SUBTITLE     0x80    /*  C6  box it and insert into normal video pict. */
00063 /*  my flags */
00064 #define PG_ACTIVE       0x100   /*  currently fetching this page */
00065 
00066 #define ANY_SUB         0x3f7f  /*  universal subpage number */
00067 
00068 #endif

Generated at Thu Jan 30 02:56:02 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001