Skip to content

ESC ] 4 ; <i> ; rgb : <r> / <g> / <b> ESC ... in WindowsTerminal? #12113

Answered by DHowett
vefatica asked this question in Q&A
Discussion options

You must be logged in to vote

So! The documentation for these is right under the "Operating System Commands" section in the inimitable xterm control sequences guide. We have a backlog item booked to update our docs with all our supported sequences and the versions they came out in.

Your finding is pretty interesting! This set of OSC can be "chained" -- if you start with 10, and specify multiple colors (For your sequence, E]10;16;XYZ, 16 here was interpreted as the first color, and XYZ the second!), you will set resources 10, 11, 12, ...

"`e]10;rgb:ff/00/00;rgb:00/ff/00;rgb:00/00/ff`e\"
       ^ FOREGROUND ^ BACKGROUND ^ CURSOR

The 10 indicates that we wanted to start with the foreground.

You could do the same thing …

Replies: 39 comments 18 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by DHowett
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@DHowett
Comment options

@DHowett
Comment options

Comment options

You must be logged in to vote
1 reply
@DHowett
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DHowett
Comment options

Comment options

You must be logged in to vote
1 reply
@DHowett
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DHowett
Comment options

Comment options

You must be logged in to vote
10 replies
@vefatica
Comment options

@DHowett
Comment options

@vefatica
Comment options

@vefatica
Comment options

@DHowett
Comment options

Comment options

You must be logged in to vote
1 reply
@j4james
Comment options

Comment options

You must be logged in to vote
1 reply
@ClaireCJS
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Issue-Question For questions or discussion Resolution-Answered Related to questions that have been answered Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements
5 participants
Converted from issue

This discussion was converted from issue #11126 on January 07, 2022 21:03.