Skip to content

Commit

Permalink
3.6.1; updated OSC 7765 -> OSC 7704
Browse files Browse the repository at this point in the history
  • Loading branch information
mintty committed Apr 24, 2022
1 parent b8ab366 commit eac7c0b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/termout.c
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion wiki/Changelog.md
Expand Up @@ -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).
Expand Down
8 changes: 4 additions & 4 deletions wiki/CtrlSeqs.md
Expand Up @@ -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.

Expand All @@ -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.

Expand Down

0 comments on commit eac7c0b

Please sign in to comment.