Mon Jan 27 17:31:41 2003 Michael Jennings (mej)
Support for xterm's cursor color change sequence (\e]12;<color>\a) as requested by Thomas <arnognul@tiscali.se>. SVN revision: 6638
This commit is contained in:
parent
8ddcb3f72d
commit
d553a9d67a
|
@ -4970,3 +4970,8 @@ Wed Jan 22 15:12:36 2003 Michael Jennings (mej)
|
||||||
Yasufumi Haga <yasufumi.haga@nifty.com> found another typo in the man
|
Yasufumi Haga <yasufumi.haga@nifty.com> found another typo in the man
|
||||||
page, this one concerning the non-existent "bold multichar" font.
|
page, this one concerning the non-existent "bold multichar" font.
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
|
Mon Jan 27 17:31:41 2003 Michael Jennings (mej)
|
||||||
|
|
||||||
|
Support for xterm's cursor color change sequence (\e]12;<color>\a) as
|
||||||
|
requested by Thomas <arnognul@tiscali.se>.
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
|
13
src/term.c
13
src/term.c
|
@ -2365,6 +2365,19 @@ xterm_seq(int op, const char *str)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case XTerm_ccolor:
|
||||||
|
/* Change cursor color */
|
||||||
|
#ifndef NO_CURSORCOLOR
|
||||||
|
nstr = (char *) strsep(&tnstr, ";");
|
||||||
|
if (nstr) {
|
||||||
|
if (XParseColor(Xdisplay, cmap, nstr, &xcol) && XAllocColor(Xdisplay, cmap, &xcol)) {
|
||||||
|
PixColors[cursorColor] = xcol.pixel;
|
||||||
|
scr_refresh(DEFAULT_REFRESH);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
|
||||||
case XTerm_Pixmap:
|
case XTerm_Pixmap:
|
||||||
#ifdef PIXMAP_SUPPORT
|
#ifdef PIXMAP_SUPPORT
|
||||||
FOREACH_IMAGE(if (!image_mode_is(idx, MODE_IMAGE) && image_mode_is(idx, ALLOW_IMAGE)) {
|
FOREACH_IMAGE(if (!image_mode_is(idx, MODE_IMAGE) && image_mode_is(idx, ALLOW_IMAGE)) {
|
||||||
|
|
|
@ -63,6 +63,7 @@
|
||||||
# define XTerm_iconName 1
|
# define XTerm_iconName 1
|
||||||
# define XTerm_title 2
|
# define XTerm_title 2
|
||||||
# define XTerm_prop 3
|
# define XTerm_prop 3
|
||||||
|
# define XTerm_ccolor 12
|
||||||
# define XTerm_logfile 46
|
# define XTerm_logfile 46
|
||||||
# define XTerm_font 50
|
# define XTerm_font 50
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue