"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "screen.c" between
xterm-363.tgz and xterm-364.tgz

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

screen.c  (xterm-363.tgz):screen.c  (xterm-364.tgz)
/* $XTermId: screen.c,v 1.596 2020/12/10 19:43:26 tom Exp $ */ /* $XTermId: screen.c,v 1.597 2021/02/02 00:19:32 tom Exp $ */
/* /*
* Copyright 1999-2019,2020 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,
* distribute, sublicense, and/or sell copies of the Software, and to * distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to * permit persons to whom the Software is furnished to do so, subject to
* the following conditions: * the following conditions:
skipping to change at line 1537 skipping to change at line 1537
int scrollamt = screen->scroll_amt; int scrollamt = screen->scroll_amt;
unsigned gc_changes = 0; unsigned gc_changes = 0;
#ifdef __CYGWIN__ #ifdef __CYGWIN__
static char first_time = 1; static char first_time = 1;
#endif #endif
static int recurse = 0; static int recurse = 0;
#if OPT_WIDE_ATTRS #if OPT_WIDE_ATTRS
unsigned old_attrs = xw->flags; unsigned old_attrs = xw->flags;
#endif #endif
TRACE(("ScrnRefresh top %d (%d,%d) - (%d,%d)%s {{\n", TRACE(("ScrnRefresh top %d (%d,%d) - (%d,%d)%s " TRACE_L "\n",
screen->topline, toprow, leftcol, screen->topline, toprow, leftcol,
nrows, ncols, nrows, ncols,
force ? " force" : "")); force ? " force" : ""));
++recurse; ++recurse;
if (screen->cursorp.col >= leftcol if (screen->cursorp.col >= leftcol
&& screen->cursorp.col <= (leftcol + ncols - 1) && screen->cursorp.col <= (leftcol + ncols - 1)
&& screen->cursorp.row >= ROW2INX(screen, toprow) && screen->cursorp.row >= ROW2INX(screen, toprow)
&& screen->cursorp.row <= ROW2INX(screen, maxrow)) && screen->cursorp.row <= ROW2INX(screen, maxrow))
skipping to change at line 1901 skipping to change at line 1901
}); });
#if defined(__CYGWIN__) && defined(TIOCSWINSZ) #if defined(__CYGWIN__) && defined(TIOCSWINSZ)
if (first_time == 1) { if (first_time == 1) {
first_time = 0; first_time = 0;
update_winsize(screen->respond, nrows, ncols, xw->core.height, xw->core.w idth); update_winsize(screen->respond, nrows, ncols, xw->core.height, xw->core.w idth);
} }
#endif #endif
recurse--; recurse--;
TRACE(("...}} ScrnRefresh\n")); TRACE((TRACE_R " ScrnRefresh\n"));
return; return;
} }
/* /*
* Call this wrapper to ScrnRefresh() when the data has changed. If the * Call this wrapper to ScrnRefresh() when the data has changed. If the
* refresh region overlaps the selection, we will release the primary selection. * refresh region overlaps the selection, we will release the primary selection.
*/ */
void void
ScrnUpdate(XtermWidget xw, ScrnUpdate(XtermWidget xw,
int toprow, int toprow,
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

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