summaryrefslogtreecommitdiff
path: root/misc/dt/patches/patch-ac
blob: 18b8acd9fc8402a43f8ea59f2c51c18a3490b561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
$NetBSD: patch-ac,v 1.3 2002/02/11 18:30:22 fredb Exp $

--- vt.h.orig	Mon Feb 11 11:13:44 2002
+++ vt.h
@@ -5,7 +5,7 @@
  */
 
 #define VT_MAXVT	9
-#define	VT_MAXCOLS	132
+#define	VT_MAXCOLS	224
 #define	VT_MAXROWS	100
 #define	VT_POOLSIZE	(VT_MAXVT * (VT_MAXROWS + 1))
 
@@ -20,6 +20,7 @@
 #define T_REVERSE	0x04
 #define T_SELECTED	0x08
 #define T_INSERT	0x10
+#define T_LINEDRAW	0x20
 
 /* Cursor types */
 #define C_BLOCK		0x01
@@ -49,6 +50,10 @@
 #define	SETBG(x,c)	((x) = ((x) & 0x0F) | ((c) << 4))
 #define	SETCOLOR(x,f,b)	((x) = (f) | ((b) << 4))
 
+/* Character sets */
+#define S_ASCII		0x00	/* ASCII Graphics (normal)	*/
+#define S_LINEDRAW	0x01	/* DEC Special Graphics		*/
+
 struct vt_s {
 	/* Scrollback information */
 	int     line[VT_POOLSIZE];	/* Lines in the scrollback pool	 */
@@ -87,6 +92,12 @@
 	int     pars[VT_MAXPARS];	/* VT100 parameters		 */
 	int     ques;		/* If ? in VT100 string		 */
 	u_int   tab_stop[5];	/* Bit field for tab stops	 */
+
+	/* Graphics set information */
+	int	gset0;		/* Character set loaded into GS0 */
+	int	gset0changed;	/* GS0 loaded, but not active	 */
+	int	gset0mapped;	/* GS0 loaded and active	 */
+	int	gset1;		/* Character set loaded into GS1 */
 };
 
 extern struct vt_s vt[VT_MAXVT];