Fri Dec 14 15:17:14 2001 Michael Jennings (mej)
termcap fix from Fredrik Svensson <fred@ludd.luth.se> and another mod to Paul's patch. SVN revision: 5769
This commit is contained in:
parent
7701e6d1e1
commit
36b1140007
|
@ -4435,3 +4435,8 @@ Thu Dec 13 15:14:33 2001 Michael Jennings (mej)
|
|||
|
||||
An update to a previous patch from Paul Brannan <pbranna@clemson.edu>.
|
||||
----------------------------------------------------------------------
|
||||
Fri Dec 14 15:17:14 2001 Michael Jennings (mej)
|
||||
|
||||
termcap fix from Fredrik Svensson <fred@ludd.luth.se> and another
|
||||
mod to Paul's patch.
|
||||
----------------------------------------------------------------------
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Eterm|Eterm-color|Eterm with xterm-style color support (X Window System):\
|
||||
:am:bw:eo:km:mi:ms:xn:xo:\
|
||||
:co#80:it#8:li#24:lm#0:\
|
||||
:co#80:it#8:li#24:lm#0:pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:\
|
||||
:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
|
||||
:K1=\E[7~:K2=\EOu:K3=\E[5~:K4=\E[8~:K5=\E[6~:LE=\E[%dD:\
|
||||
:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:\
|
||||
|
|
|
@ -12,7 +12,9 @@ Eterm.1.html: Eterm.1
|
|||
|
||||
install-data-hook:
|
||||
$(TIC) Eterm.ti || (mkinstalldirs $(HOME)/.terminfo && $(TIC) -o$(HOME)/.terminfo Eterm.ti) || :
|
||||
-infocmp -C -sc Eterm | sed -e '/Reconstructed/d' -e '/\.\.sa=/d' > Eterm.tcap.new && mv Eterm.tcap.new Eterm.tcap || rm -f Eterm.tcap.new
|
||||
-infocmp -C -sc Eterm | sed -e '/Reconstructed/d' -e '/\.\.sa=/d' \
|
||||
-e 's!^\([[:space:]]:co#.*\):\\$$!\1:pa#64:Co#8:AF=\\E[3%dm:AB=\\E[4%dm:\\!' \
|
||||
> Eterm.tcap.new && mv Eterm.tcap.new Eterm.tcap || rm -f Eterm.tcap.new
|
||||
-if test -f /usr/share/misc/termcap && test -f Eterm.tcap ; then \
|
||||
grep 'Eterm-color' /usr/share/misc/termcap || cat Eterm.tcap >> /usr/share/misc/termcap ; \
|
||||
cap_mkdb termcap ; \
|
||||
|
|
18
src/term.c
18
src/term.c
|
@ -1530,12 +1530,12 @@ process_terminal_mode(int mode, int priv, unsigned int nargs, int arg[])
|
|||
|
||||
case 1047: /* Alternate screen & clear */
|
||||
PrivCases(PrivMode_Screen);
|
||||
scr_change_screen(state);
|
||||
if (state) {
|
||||
/* Only clear the screen when switching to the
|
||||
secondary screen. Leave the primary intact. */
|
||||
if (!state) {
|
||||
/* Only clear the screen before switching from
|
||||
secondary to primary. */
|
||||
scr_erase_screen(2);
|
||||
}
|
||||
scr_change_screen(state);
|
||||
break;
|
||||
case 1048: /* Save/restore cursor pos */
|
||||
PrivCases(PrivMode_Screen);
|
||||
|
@ -1543,13 +1543,13 @@ process_terminal_mode(int mode, int priv, unsigned int nargs, int arg[])
|
|||
break;
|
||||
case 1049: /* Alternate screen & cursor */
|
||||
PrivCases(PrivMode_Screen);
|
||||
scr_cursor(state ? SAVE : RESTORE);
|
||||
scr_change_screen(state);
|
||||
if (state) {
|
||||
/* Only clear the screen when switching to the
|
||||
secondary screen. Leave the primary intact. */
|
||||
scr_cursor(state ? SAVE : RESTORE);
|
||||
if (!state) {
|
||||
/* Only clear the screen before switching from
|
||||
secondary to primary. */
|
||||
scr_erase_screen(2);
|
||||
}
|
||||
scr_change_screen(state);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue