From 18189138fd023a0be97b162a8f68f9db0b4553eb Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 4 Aug 2000 15:49:07 +0000 Subject: Set default color pair to its original value on command execution and exit. --- misc/deco/files/patch-ae | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 misc/deco/files/patch-ae (limited to 'misc/deco') 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 (); + } -- cgit