summaryrefslogtreecommitdiff
path: root/programs/xterm/input.c
diff options
context:
space:
mode:
authordickey <dickey>2004-03-04 02:21:54 +0000
committerdickey <dickey>2004-03-04 02:21:54 +0000
commitfaa84ed993c05413e9dd8f2ccfc96c870fe6311f (patch)
treeecb3788b3e655756fb29106fd95eee06dbf4627c /programs/xterm/input.c
parent25119249a2acc8317004fa052e0703b88e0fc682 (diff)
xterm Patch #185 - 2004/3/3 - XFree86 4.4
* fix tcap-query logic for the backspace key (XFree86 Bugzilla #1233, report/patch by Anton Kovalenko). * add test-scripts resize.pl and tcapquery.pl * add translation to ASCII of commonly-used characters that groff translates to Unicode, when the font in use does not provide the corresponding glyphs (Debian #219551). * modify RequestMaximize(), which performs maximize/restore via control sequences, to account for window-frame (patch by Jess Thrysoee). * improve pattern used in uxterm to check for UTF-8 locale, e.g., for HPUX (patch by H Merijn Brand). * add -fd option and resource faceNameDoublesize to specify double-wide fonts with Xft (adapted from patch by Zarick Lau). * change a couple of resource classes from "Boolean" to specific values: freeBoldBox, forceBoxChars. * add resource showMissingGlyphs to outline places on the screen where a font lacks the corresponding glyph. * add resource showBlinkAsBold to control whether blinking text should be shown as bold or actual blinking text. * improve logic in ShowCursor() to avoid repainting the cursor when it is already visible, e.g., in response to the DECTCEM escape sequence. This also addresses XFree86 Bugzilla #1158. * implement blinking text, using the timer for blinking cursor. * modify FreeType support to allow resizing the font, in the same ways the window can be resized if fixed fonts are used. The relative font sizes are derived from the fixed font sizes. * add menu items and corresponding actions for switching on/off the UTF-8 mode and Xft (TrueType) support. * add logic to handle switching UTF-8 mode on/off. It worked if the escape sequences were flushed, but if data was mixed in with the same write, some were not handled properly (report by Nicolas George). * modify to allow turning UTF-8 mode via escape sequence even if -wc option was not given at startup (patch by Peter Berg Larsen). * amend fix for XFree86 Bugzilla #981, adjusting for savedlines value (report by Tim Adye). * fix a typo in computing relative font size (Jess Thrysoee).
Diffstat (limited to 'programs/xterm/input.c')
-rw-r--r--programs/xterm/input.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/programs/xterm/input.c b/programs/xterm/input.c
index a1e2744e3..889e69498 100644
--- a/programs/xterm/input.c
+++ b/programs/xterm/input.c
@@ -2,10 +2,10 @@
* $Xorg: input.c,v 1.3 2000/08/17 19:55:08 cpqbld Exp $
*/
-/* $XFree86: xc/programs/xterm/input.c,v 3.67 2003/12/03 00:22:57 dawes Exp $ */
+/* $XFree86: xc/programs/xterm/input.c,v 3.69 2003/12/31 17:12:28 dickey Exp $ */
/*
- * Copyright 1999-2002,2003 by Thomas E. Dickey
+ * Copyright 1999-2003,2004 by Thomas E. Dickey
*
* All Rights Reserved
*
@@ -354,8 +354,13 @@ Input(TKeyboard * keyboard,
#if OPT_TCAP_QUERY
if (screen->tc_query >= 0) {
keysym = screen->tc_query;
- nbytes = 0;
- strbuf[0] = 0;
+ if (keysym != XK_BackSpace) {
+ nbytes = 0;
+ strbuf[0] = 0;
+ } else {
+ nbytes = 1;
+ strbuf[0] = 8;
+ }
} else
#endif
#if OPT_I18N_SUPPORT