aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-08-04 23:49:07 +0800
committerru <ru@FreeBSD.org>2000-08-04 23:49:07 +0800
commit3242bcefbfdba58f6f66e36349d034a79084d5a0 (patch)
treecb76611ea6361a8042a3430a981999edcb83bb9a /misc
parentbed2e7aa7cc135b8d4f91e45d8656072bde6aaaa (diff)
downloadfreebsd-ports-gnome-3242bcefbfdba58f6f66e36349d034a79084d5a0.tar.gz
freebsd-ports-gnome-3242bcefbfdba58f6f66e36349d034a79084d5a0.tar.zst
freebsd-ports-gnome-3242bcefbfdba58f6f66e36349d034a79084d5a0.zip
Set default color pair to its original value on command execution and exit.
Diffstat (limited to 'misc')
-rw-r--r--misc/deco/files/patch-ae36
1 files changed, 36 insertions, 0 deletions
diff --git a/misc/deco/files/patch-ae b/misc/deco/files/patch-ae
new file mode 100644
index 000000000000..d6efc7afa293
--- /dev/null
+++ b/misc/deco/files/patch-ae
@@ -0,0 +1,36 @@
+Index: scr.c
+@@ -167,7 +167,7 @@
+
+ static char *CL, *CM, *SE, *SO, *TE, *TI, *VE, *VS,
+ *AL, *DL, *IS, *IF, *FS, *MD, *MH, *ME, *MR,
+- *CF, *CB, *AF, *AB, *Sf, *Sb, *MF, *MB;
++ *CF, *CB, *AF, *AB, *Sf, *Sb, *MF, *MB, *OP;
+ static NF, NB;
+ static char MS, C2;
+
+@@ -231,6 +231,7 @@
+ { "Cs", CAPSTR, 0, 0, 0, &Cs, },
+ { "Ce", CAPSTR, 0, 0, 0, &Ce, },
+ { "Ct", CAPSTR, 0, 0, 0, &Ct, },
++ { "op", CAPSTR, 0, 0, 0, &OP, },
+ { { 0, 0, }, 0, 0, 0, 0, 0, },
+ };
+
+@@ -413,6 +414,8 @@
+ tputs (TE);
+ if (KE)
+ tputs (KE);
++ if (OP)
++ tputs (OP);
+ VFlush ();
+ TtyReset ();
+ }
+@@ -425,6 +428,8 @@
+ tputs (VE);
+ if (KE)
+ tputs (KE);
++ if (OP)
++ tputs (OP);
+ VFlush ();
+ TtyReset ();
+ }