Fri Mar 31 15:12:37 PST 2000 Michael Jennings <mej@eterm.org>

Added the escape sequence for the "no input" option.  "\e]6;27\a".


SVN revision: 2401
This commit is contained in:
Michael Jennings 2000-03-31 23:13:57 +00:00
parent 94f00a7923
commit f2badab9b8
2 changed files with 15 additions and 0 deletions

View File

@ -3404,3 +3404,8 @@ Thu Mar 30 20:34:10 PST 2000 Michael Jennings <mej@eterm.org>
toggle this.
-------------------------------------------------------------------------------
Fri Mar 31 15:12:37 PST 2000 Michael Jennings <mej@eterm.org>
Added the escape sequence for the "no input" option. "\e]6;27\a".
-------------------------------------------------------------------------------

View File

@ -1667,6 +1667,7 @@ xterm_seq(int op, const char *str)
XColor xcol;
char *nstr, *tnstr, *orig_tnstr, *valptr;
unsigned char eterm_seq_op, which = 0;
XWMHints *wm_hints;
#ifdef PIXMAP_SUPPORT
unsigned char changed = 0, scaled = 0;
char *color, *mod;
@ -2118,6 +2119,15 @@ xterm_seq(int op, const char *str)
nstr = (char *) strsep(&tnstr, ";");
OPT_SET_OR_TOGGLE(nstr, Options, Opt_report_as_keysyms);
break;
case 27:
nstr = (char *) strsep(&tnstr, ";");
OPT_SET_OR_TOGGLE(nstr, Options, Opt_no_input);
wm_hints = XGetWMHints(Xdisplay, TermWin.parent);
wm_hints->flags |= InputHint;
wm_hints->input = ((Options & Opt_no_input) ? False : True);
XSetWMHints(Xdisplay, TermWin.parent, wm_hints);
XFree(wm_hints);
break;
case 30:
nstr = (char *) strsep(&tnstr, ";");
if (nstr) {