From df078dd65211108ad4dcb3cc57eb81e8082dbdc0 Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Mon, 3 Mar 2003 04:53:35 +0000 Subject: Sun Mar 2 23:40:39 2003 Michael Jennings (mej) Fixed a bug with foreground/background color change pointed out by Thomas . Also added support for all the other OSC color change sequences (at least those for the colors that Eterm uses). The sequences are of the form "\e];n;color[;color[...]]\a", where n is between 10 and 19. You can specify up to (20 - n) semicolon-separated colors representing the following attributes in order: foreground, background, cursor, mouse pointer, mouse pointer background (*), Tek foreground (*), Tek background (*), highlight color (*), bold color, and underline color. Attributes marked with a (*) are ignored by Eterm and may be left empty, but their trailing semicolons must be present for xterm compatibility. For example, to set a white foreground, black background, yellow text cursor, green mouse cursor, #ffaa00 for bold, and cyan for underline, you could use either of the following: echo -e "\e]10;white;black;yellow;green;;;;;#ffaa00;cyan\007" or echo -e "\e]10;white\007" echo -e "\e]11;black\007" echo -e "\e]12;yellow\007" echo -e "\e]13;green\007" echo -e "\e]18;#ffaa00\007" echo -e "\e]19;cyan\007" Note that the setting of bold and underline colors using 18 and 19 are Eterm extensions. SVN revision: 6739 --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command.c') diff --git a/src/command.c b/src/command.c index 988237e..6956faf 100644 --- a/src/command.c +++ b/src/command.c @@ -3109,7 +3109,7 @@ check_pixmap_change(int sig) imlib_context_set_image(images[image_bg].current->iml->im); imlib_free_image_and_decache(); images[image_bg].current->iml->im = NULL; - xterm_seq(XTerm_Pixmap, rs_anim_pixmaps[image_idx++]); + xterm_seq(ESCSEQ_XTERM_PIXMAP, rs_anim_pixmaps[image_idx++]); last_update = now; old_handler = signal(SIGALRM, check_pixmap_change); alarm(rs_anim_delay); -- cgit v1.2.1