"Fossies" - the Fresh Open Source Software Archive  

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

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

misc.c  (xterm-365.tgz):misc.c  (xterm-366.tgz)
/* $XTermId: misc.c,v 1.966 2021/01/22 00:49:09 tom Exp $ */ /* $XTermId: misc.c,v 1.968 2021/02/10 00:50:59 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 226 skipping to change at line 226
{ {
TScreen *screen = TScreenOf(xw); TScreen *screen = TScreenOf(xw);
TRACE(("unselectwindow(%d) flag=%d\n", screen->select, flag)); TRACE(("unselectwindow(%d) flag=%d\n", screen->select, flag));
if (screen->hide_pointer && screen->pointer_mode < pFocused) { if (screen->hide_pointer && screen->pointer_mode < pFocused) {
screen->hide_pointer = False; screen->hide_pointer = False;
xtermDisplayCursor(xw); xtermDisplayCursor(xw);
} }
screen->select &= ~flag;
if (!screen->always_highlight) { if (!screen->always_highlight) {
#if OPT_TEK4014 #if OPT_TEK4014
if (TEK4014_ACTIVE(xw)) { if (TEK4014_ACTIVE(xw)) {
if (!Ttoggled) if (!Ttoggled)
TCursorToggle(tekWidget, TOGGLE); TCursorToggle(tekWidget, TOGGLE);
screen->select &= ~flag;
if (!Ttoggled) if (!Ttoggled)
TCursorToggle(tekWidget, TOGGLE); TCursorToggle(tekWidget, TOGGLE);
} else } else
#endif #endif
{ {
#if OPT_INPUT_METHOD #if OPT_INPUT_METHOD
TInput *input = lookupTInput(xw, (Widget) xw); TInput *input = lookupTInput(xw, (Widget) xw);
if (input && input->xic) if (input && input->xic)
XUnsetICFocus(input->xic); XUnsetICFocus(input->xic);
#endif #endif
screen->select &= ~flag;
if (screen->cursor_state && CursorMoved(screen)) if (screen->cursor_state && CursorMoved(screen))
HideCursor(xw); HideCursor(xw);
if (screen->cursor_state) if (screen->cursor_state)
ShowCursor(xw); ShowCursor(xw);
} }
} }
} }
static void static void
DoSpecialEnterNotify(XtermWidget xw, XEnterWindowEvent *ev) DoSpecialEnterNotify(XtermWidget xw, XEnterWindowEvent *ev)
skipping to change at line 4533 skipping to change at line 4533
if ((value = parse_int_param(&cp)) <= 0 || value > MaxRows(screen)) if ((value = parse_int_param(&cp)) <= 0 || value > MaxRows(screen))
return; return;
screen->cur_row = (value - 1); screen->cur_row = (value - 1);
/* column */ /* column */
if ((value = parse_int_param(&cp)) <= 0 || value > MaxCols(screen)) if ((value = parse_int_param(&cp)) <= 0 || value > MaxCols(screen))
return; return;
screen->cur_col = (value - 1); screen->cur_col = (value - 1);
/* page */ /* page */
if ((value = parse_int_param(&cp)) != 1) if (parse_int_param(&cp) != 1)
return; return;
/* rendition */ /* rendition */
if (((value = parse_chr_param(&cp)) & 0xf0) != 0x40) if (((value = parse_chr_param(&cp)) & 0xf0) != 0x40)
return; return;
UIntClr(xw->flags, (INVERSE | BLINK | UNDERLINE | BOLD)); UIntClr(xw->flags, (INVERSE | BLINK | UNDERLINE | BOLD));
xw->flags |= (value & 8) ? INVERSE : 0; xw->flags |= (value & 8) ? INVERSE : 0;
xw->flags |= (value & 4) ? BLINK : 0; xw->flags |= (value & 4) ? BLINK : 0;
xw->flags |= (value & 2) ? UNDERLINE : 0; xw->flags |= (value & 2) ? UNDERLINE : 0;
xw->flags |= (value & 1) ? BOLD : 0; xw->flags |= (value & 1) ? BOLD : 0;
skipping to change at line 4568 skipping to change at line 4568
if ((value = (parse_chr_param(&cp) - '0')) < 0 || value >= NUM_GSETS) if ((value = (parse_chr_param(&cp) - '0')) < 0 || value >= NUM_GSETS)
return; return;
screen->curgl = (Char) value; screen->curgl = (Char) value;
if ((value = (parse_chr_param(&cp) - '0')) < 0 || value >= NUM_GSETS) if ((value = (parse_chr_param(&cp) - '0')) < 0 || value >= NUM_GSETS)
return; return;
screen->curgr = (Char) value; screen->curgr = (Char) value;
/* character-set size */ /* character-set size */
if ((value = parse_chr_param(&cp)) != 0x4f) /* works for xter m */ if (parse_chr_param(&cp) != 0x4f) /* works for xterm */
return; return;
/* SCS designators */ /* SCS designators */
for (value = 0; value < NUM_GSETS; ++value) { for (value = 0; value < NUM_GSETS; ++value) {
if (*cp == '%') { if (*cp == '%') {
xtermDecodeSCS(xw, value, 0, '%', *++cp); xtermDecodeSCS(xw, value, 0, '%', *++cp);
} else if (*cp != '\0') { } else if (*cp != '\0') {
xtermDecodeSCS(xw, value, 0, '\0', *cp); xtermDecodeSCS(xw, value, 0, '\0', *cp);
} else { } else {
return; return;
 End of changes. 6 change blocks. 
5 lines changed or deleted 5 lines changed or added

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