1 /* console state (for consctl) */
2 typedef struct Consstate Consstate;
8 extern Consstate* consctl(void);
11 #define XMARGIN 5 /* inset from border of layer */
15 #define HISTSIZ 4096 /* number of history characters */
27 THighIntensity = (1<<0),
35 #define button2() ((mouse.buttons & 07)==2)
36 #define button3() ((mouse.buttons & 07)==4)
42 extern struct ttystate ttystate[];
44 #define NKEYS 32 /* max key definitions */
49 extern struct funckey *fk;
50 extern struct funckey vt100fk[], vt220fk[], ansifk[], xtermfk[];
52 extern int x, y, xmax, ymax, olines;
53 extern int peekc, attribute;
56 extern void emulate(void);
57 extern int host_avail(void);
58 extern void clear(Rectangle);
59 extern void newline(void);
60 extern int get_next_char(void);
61 extern void ringbell(void);
62 extern int number(Rune *, int *);
63 extern void scroll(int,int,int,int);
64 extern void backup(int);
65 extern void sendnchars(int, char *);
66 extern Point pt(int, int);
67 extern void funckey(int);
68 extern void drawstring(Point, Rune*, int);
71 extern int yscrmin, yscrmax;
75 extern Image *fgcolor;
76 extern Image *bgcolor;
77 extern Image *colors[];
78 extern Image *hicolors[];
79 extern Image *bgdefault;
80 extern Image *fgdefault;
85 extern void curson(int);
86 extern void cursoff(void);
87 extern void setdim(int, int);