Enlightenment CVS committal
Author : mej
Project : eterm
Module : Eterm
Dir : eterm/Eterm/src
Modified Files:
term.c term.h
Log Message:
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 <[EMAIL PROTECTED]>.
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/term.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -3 -r1.88 -r1.89
--- term.c 27 Nov 2002 20:18:24 -0000 1.88
+++ term.c 27 Jan 2003 22:35:57 -0000 1.89
@@ -21,7 +21,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-static const char cvs_ident[] = "$Id: term.c,v 1.88 2002/11/27 20:18:24 mej Exp $";
+static const char cvs_ident[] = "$Id: term.c,v 1.89 2003/01/27 22:35:57 mej Exp $";
#include "config.h"
#include "feature.h"
@@ -2363,6 +2363,19 @@
default:
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:
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/term.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- term.h 23 Oct 2002 03:03:27 -0000 1.22
+++ term.h 27 Jan 2003 22:35:58 -0000 1.23
@@ -63,6 +63,7 @@
# define XTerm_iconName 1
# define XTerm_title 2
# define XTerm_prop 3
+# define XTerm_ccolor 12
# define XTerm_logfile 46
# define XTerm_font 50
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs