From c612945f06982df0d22b8f26e56a25f324cb21f9 Mon Sep 17 00:00:00 2001 From: ayin Date: Sat, 19 Jan 2008 15:00:49 +0000 Subject: [PATCH] Deprecate OSC 39/49. --- Changes | 1 + doc/rxvt.7.pod | 8 ++++---- src/command.C | 9 ++------- src/rxvt.h | 20 +++++++++++--------- 4 files changed, 18 insertions(+), 20 deletions(-) diff --git a/Changes b/Changes index 631d09b5..bfe1acc7 100644 --- a/Changes +++ b/Changes @@ -18,6 +18,7 @@ WISH: look into XAddConnectionWatch, does anybody need that? DUMB: support tex fonts 9.0 + - OSC 39/49 are deprecated and aliased to OSC 10/11. - fix a crash bug where urxvtd would crash when urxvtc was called with wrong arguments (I wish debian maintainers in general would report bugs and their proposed fixes to the original package maintaienrs diff --git a/doc/rxvt.7.pod b/doc/rxvt.7.pod index de684822..5693d26a 100644 --- a/doc/rxvt.7.pod +++ b/doc/rxvt.7.pod @@ -2003,17 +2003,17 @@ B can be escaped by prefixing it with SYN (0x16, ^V). B<< C >> Change Window Title to B<< C >> B<< C >> If B<< C >> starts with a B<< C >>, query the (STRING) property of the window and return it. If B<< C >> contains a B<< C<=> >>, set the named property to the given value, else delete the specified property. B<< C >> B<< C >> is a semi-colon separated sequence of one or more semi-colon separated B/B pairs, where B is an index to a colour and B is the name of a colour. Each pair causes the Bed colour to be changed to B. Numbers 0-7 corresponds to low-intensity (normal) colours and 8-15 corresponds to high-intensity colours. 0=black, 1=red, 2=green, 3=yellow, 4=blue, 5=magenta, 6=cyan, 7=white - B<< C >> Change colour of text foreground to B<< C >> B<(NB: may change in future)> - B<< C >> Change colour of text background to B<< C >> B<(NB: may change in future)> + B<< C >> Change colour of text foreground to B<< C >> + B<< C >> Change colour of text background to B<< C >> B<< C >> Change colour of text cursor foreground to B<< C >> B<< C >> Change colour of mouse foreground to B<< C >> B<< C >> Change colour of highlight characters to B<< C >> B<< C >> Change colour of bold characters to B<< C >> [deprecated, see 706] B<< C >> Change colour of underlined characters to B<< C >> [deprecated, see 707] B<< C >> Change background pixmap parameters (see section BACKGROUND IMAGE) (Compile AfterImage). - B<< C >> Change default foreground colour to B<< C >>. + B<< C >> Change default foreground colour to B<< C >>. [deprecated, use 10] B<< C >> Change Log File to B<< C >> I - B<< C >> Change default background colour to B<< C >>. + B<< C >> Change default background colour to B<< C >>. [deprecated, use 11] B<< C >> Set fontset to B<< C >>, with the following special values of B<< C >> (B) B<< C<#+n> >> change up B<< C >> B<< C<#-n> >> change down B<< C >> if B<< C >> is missing of 0, a value of 1 is used I change to font0 B<< C >> change to font B<< C >> B<< C >> Log all scrollback buffer and all of screen to B<< C >> B<< C >> Change current locale to B<< C >>, or, if B<< C >> is B<< C >>, return the current locale (Compile frills). diff --git a/src/command.C b/src/command.C index cbcf23df..de8d576b 100644 --- a/src/command.C +++ b/src/command.C @@ -3375,9 +3375,11 @@ rxvt_term::process_xterm_seq (int op, const char *str, char resp) process_color_seq (op, color, name, resp); } break; + case Rxvt_restoreFG: case XTerm_Color00: process_color_seq (op, Color_fg, str, resp); break; + case Rxvt_restoreBG: case XTerm_Color01: process_color_seq (op, Color_bg, str, resp); break; @@ -3466,13 +3468,6 @@ rxvt_term::process_xterm_seq (int op, const char *str, char resp) break; #endif - case Rxvt_restoreFG: - set_window_color (Color_fg, str); - break; - case Rxvt_restoreBG: - set_window_color (Color_bg, str); - break; - case XTerm_logfile: // TODO, when secure mode? break; diff --git a/src/rxvt.h b/src/rxvt.h index f4965042..6ed3551e 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -396,8 +396,8 @@ enum { XTerm_title = 2, XTerm_property = 3, // change X property XTerm_Color = 4, // change colors - XTerm_Color00 = 10, // not implemented, CLASH! - XTerm_Color01 = 11, // not implemented + XTerm_Color00 = 10, // change fg color + XTerm_Color01 = 11, // change bg color XTerm_Color_cursor = 12, // change actual 'Cursor' color XTerm_Color_pointer_fg = 13, // change actual 'Pointer' fg color XTerm_Color_pointer_bg = 14, // change actual 'Pointer' bg color @@ -412,13 +412,15 @@ enum { XTerm_emacs51 = 51, // reserved for emacs shell /* * rxvt extensions of XTerm OSCs: ESC ] Ps;Pt (ST|BEL) - * at least Rxvt_Color_BD and Rxvt_Color_UL clash with xterm */ - Rxvt_Color_BD = 18, // change actual 'Bold' color - Rxvt_Color_UL = 19, // change actual 'Underline' color + + // deprecated + Rxvt_Color_BD = 18, + Rxvt_Color_UL = 19, + Rxvt_restoreFG = 39, + Rxvt_restoreBG = 49, + Rxvt_Pixmap = 20, // new bg pixmap - Rxvt_restoreFG = 39, // change default fg color - Rxvt_restoreBG = 49, // change default bg color Rxvt_dumpscreen = 55, // dump scrollback and all of screen URxvt_locale = 701, // change locale @@ -426,8 +428,8 @@ enum { URxvt_Color_IT = 704, // change actual 'Italic' colour URxvt_Color_tint = 705, // change actual tint colour - URxvt_Color_BD = 706, - URxvt_Color_UL = 707, + URxvt_Color_BD = 706, // change actual 'Bold' color + URxvt_Color_UL = 707, // change actual 'Underline' color URxvt_font = 710, URxvt_boldFont = 711, -- 2.34.1