summaryrefslogtreecommitdiff
path: root/misc/dt/patches
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2002-02-10 22:49:53 +0000
committerfredb <fredb@pkgsrc.org>2002-02-10 22:49:53 +0000
commit830513d1c437ba76d863e4ec8a483c3e33812f19 (patch)
treecbf03c4fbb766781c9349cd8d93cfef78c6f22bc /misc/dt/patches
parent01fa670df5d33b3c85e81c01ba44b161bbc3dd74 (diff)
downloadpkgsrc-830513d1c437ba76d863e4ec8a483c3e33812f19.tar.gz
Boy, do I suck. Allen Briggs forwarded these patches from
Steven Carlson <stevec@accessone.com>, to do vt line draw characters, to me over *two* *years* ago!
Diffstat (limited to 'misc/dt/patches')
-rw-r--r--misc/dt/patches/patch-ac12
-rw-r--r--misc/dt/patches/patch-ad37
2 files changed, 49 insertions, 0 deletions
diff --git a/misc/dt/patches/patch-ac b/misc/dt/patches/patch-ac
new file mode 100644
index 00000000000..2ec7f0031d4
--- /dev/null
+++ b/misc/dt/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1 2002/02/10 22:49:55 fredb Exp $
+
+--- vt.h.orig Sun Jun 9 07:32:33 1996
++++ vt.h Thu Feb 7 09:12:59 2002
+@@ -20,6 +20,7 @@
+ #define T_REVERSE 0x04
+ #define T_SELECTED 0x08
+ #define T_INSERT 0x10
++#define T_G0 0x20
+
+ /* Cursor types */
+ #define C_BLOCK 0x01
diff --git a/misc/dt/patches/patch-ad b/misc/dt/patches/patch-ad
new file mode 100644
index 00000000000..1291486cf5a
--- /dev/null
+++ b/misc/dt/patches/patch-ad
@@ -0,0 +1,37 @@
+$NetBSD: patch-ad,v 1.1 2002/02/10 22:49:55 fredb Exp $
+
+--- vt.c.orig Fri May 24 10:13:52 1996
++++ vt.c Thu Feb 7 09:12:59 2002
+@@ -748,6 +748,9 @@
+ register int line, i;
+
+ if (v->state == ESnormal && ch >= ' ' && ch < 256) {
++ if ( (v->attr & T_G0) && ch >= 'a' && ch <= 'z')
++ ch -= 95;
++
+ if (v->hanging_cursor) {
+ v->x = 0;
+ movecursordown(v);
+@@ -800,8 +803,10 @@
+ v->hanging_cursor = 0;
+ return;
+ case 14:
++ v->attr |= T_G0;
+ return; /* Alternate font (^N) */
+ case 15:
++ v->attr &= ~T_G0;
+ return; /* Normal font (^O) */
+ case 24: /* (^X) */
+ case 26:
+@@ -1071,9 +1076,11 @@
+ case ESsetG0:
+ if (ch == '0') {
+ /* Set graphics character set */
++ v->attr |= T_G0;
+ } else
+ if (ch == 'B') {
+ /* Set normal character set */
++ v->attr &= ~T_G0;
+ } else
+ if (ch == 'U') {
+ /* Set null character set */