"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "charproc.c" between
xterm-365.tgz and xterm-366.tgz

About: xterm is a terminal emulator for X with ISO/ANSI color and vt220 enhancements.

charproc.c  (xterm-365.tgz):charproc.c  (xterm-366.tgz)
/* $XTermId: charproc.c,v 1.1822 2021/02/02 00:11:06 tom Exp $ */ /* $XTermId: charproc.c,v 1.1825 2021/02/10 00:49:52 tom Exp $ */
/* /*
* Copyright 1999-2020,2021 by Thomas E. Dickey * Copyright 1999-2020,2021 by Thomas E. Dickey
* *
* All Rights Reserved * All Rights Reserved
* *
* Permission is hereby granted, free of charge, to any person obtaining a * Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the * copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including * "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish, * without limitation the rights to use, copy, modify, merge, publish,
skipping to change at line 2665 skipping to change at line 2665
TRACE(("CASE_GROUND_STATE - exit ignore mode\n")); TRACE(("CASE_GROUND_STATE - exit ignore mode\n"));
ResetState(sp); ResetState(sp);
break; break;
case CASE_IGNORE: case CASE_IGNORE:
TRACE(("CASE_IGNORE - Ignore character %02X\n", c)); TRACE(("CASE_IGNORE - Ignore character %02X\n", c));
break; break;
case CASE_ENQ: case CASE_ENQ:
TRACE(("CASE_ENQ - answerback\n")); TRACE(("CASE_ENQ - answerback\n"));
if (sp->check_recur == 0) { if (((xw->keyboard.flags & MODE_SRM) == 0)
? (sp->check_recur == 0)
: (sp->check_recur <= 1)) {
for (count = 0; screen->answer_back[count] != 0; count++) for (count = 0; screen->answer_back[count] != 0; count++)
unparseputc(xw, screen->answer_back[count]); unparseputc(xw, screen->answer_back[count]);
unparse_end(xw); unparse_end(xw);
} }
break; break;
case CASE_BELL: case CASE_BELL:
TRACE(("CASE_BELL - bell\n")); TRACE(("CASE_BELL - bell\n"));
if (sp->string_mode == ANSI_OSC) { if (sp->string_mode == ANSI_OSC) {
if (sp->string_used) if (sp->string_used)
skipping to change at line 3517 skipping to change at line 3519
case 106: case 106:
/* FALLTHRU */ /* FALLTHRU */
case 107: case 107:
if_OPT_AIX_COLORS(screen, { if_OPT_AIX_COLORS(screen, {
xw->sgr_background = (op - 100 + 8); xw->sgr_background = (op - 100 + 8);
clrDirectBG(xw->flags); clrDirectBG(xw->flags);
setExtendedBG(xw); setExtendedBG(xw);
}); });
break; break;
default: default:
skip += NPARAM; /* later: skip += NPARAM; */
break; break;
} }
} }
ResetState(sp); ResetState(sp);
break; break;
/* DSR (except for the '?') is a superset of CPR */ /* DSR (except for the '?') is a superset of CPR */
case CASE_DSR: case CASE_DSR:
sp->private_function = True; sp->private_function = True;
skipping to change at line 7861 skipping to change at line 7863
} }
switch (ap->a_radix[i]) { switch (ap->a_radix[i]) {
case 16: case 16:
sprintf(temp, "%04X", ap->a_param[i] & 0xffff); sprintf(temp, "%04X", ap->a_param[i] & 0xffff);
unparseputs(xw, temp); unparseputs(xw, temp);
break; break;
case 1: case 1:
unparseputc(xw, ap->a_param[i]); unparseputc(xw, ap->a_param[i]);
break; break;
default: default:
unparseputn(xw, (unsigned) ap->a_param[i]); unparseputn(xw, (unsigned) (UParm) ap->a_param[i]);
break; break;
} }
} }
if ((inters = ap->a_inters) != 0) { if ((inters = ap->a_inters) != 0) {
for (i = 3; i >= 0; --i) { for (i = 3; i >= 0; --i) {
c = CharOf(inters >> (8 * i)); c = CharOf(inters >> (8 * i));
if (c != 0) if (c != 0)
unparseputc(xw, c); unparseputc(xw, c);
} }
} }
 End of changes. 4 change blocks. 
4 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)