diff --git a/src/termout.c b/src/termout.c index 259ceddb..115b8839 100644 --- a/src/termout.c +++ b/src/termout.c @@ -3948,7 +3948,7 @@ do_colour_osc(bool has_index_arg, uint i, bool reset) } /* - * OSC 7765: Control foreground and background variants of the 16 ANSI colours + * OSC 7704: Control foreground and background variants of the 16 ANSI colours * independently of the first 16 slots in the xterm256 palette. */ static void @@ -4111,7 +4111,7 @@ do_cmd(void) cs_set_locale(s); when 7721: // Copy window title to clipboard. win_copy_title(); - when 7765: // Change ANSI foreground/background colours. + when 7704: // Change ANSI foreground/background colours. do_ansi_colour_osc(); when 7773: { // Change icon. uint icon_index = 0; diff --git a/wiki/Changelog.md b/wiki/Changelog.md index ef6e8eae..576676cb 100644 --- a/wiki/Changelog.md +++ b/wiki/Changelog.md @@ -7,7 +7,7 @@ Window handling Terminal features * Visual input feedback: don't obscure text when just pressing Alt. * Separate foreground and background values for ANSI colours (#1151). - * OSC 7765 for setting ANSI colours distinct from palette colours (#1151). + * OSC 7704 for setting ANSI colours distinct from palette colours (#1151). Keyboard handling * Support longer multi-char keyboard input (a.k.a. "ligatures" in Windows) (#1155). diff --git a/wiki/CtrlSeqs.md b/wiki/CtrlSeqs.md index ff0d33f6..3c6acc46 100644 --- a/wiki/CtrlSeqs.md +++ b/wiki/CtrlSeqs.md @@ -745,9 +745,9 @@ background variants of the ANSI colours. | **sequence** | ** effect ** | |:------------------------------------|:-------------------------------------| -| `^[]7765;`_index_`;`_colour_`^G` | set fg and bg variants to same value | -| `^[]7765;`_index_`;`_fg_`;`_bg_`^G` | set fg and bg to separate values | -| `^[]7765;`_index_`;?^G` | query current values | +| `^[]7704;`_index_`;`_colour_`^G` | set fg and bg variants to same value | +| `^[]7704;`_index_`;`_fg_`;`_bg_`^G` | set fg and bg to separate values | +| `^[]7704;`_index_`;?^G` | query current values | The _index_ argument has to be in range 0 to 15. @@ -765,7 +765,7 @@ for the foreground and background variants are the same, and with the two-value sequence otherwise. Note: Unlike the xterm-compatible sequence OSC 4, which sets palette colours -including ANSI colours, OSC 7765 can be used to change ANSI colours only, +including ANSI colours, OSC 7704 can be used to change ANSI colours only, leaving the associated palette colours 0..15 unchanged, so you could select different colours with SGR 30..37 etc distinct from SGR 38:5 etc.