-
Notifications
You must be signed in to change notification settings - Fork 9.2k
OSC 12 "set cursor color" not working, in atlas engine #14533
Copy link
Copy link
Closed
Labels
Area-AtlasEngineIn-PRThis issue has a related PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.Priority-3A description (P3)A description (P3)Product-TerminalThe new Windows Terminal.The new Windows Terminal.
Milestone
Description
@DHowett @mattwojo sorry to dig this old thread up, but if I do a `printf %b '\e]12;red\a'`, should I expect the cursor color to change to red? Using terminal preview version 1.16.2641.0, doing the above in wsl, I don't see the cursor color changing. It retains the original color specified via the color theme in the settings.Originally posted by @damnskippy in #184 (comment)
Interestingly enough, if I lock my screen (Windows-L) and unlock it the cursor has then changed its color.
I bet we don't do an invalidate of the screen.Nah I dunno what this is. We should move this over to the Terminal repo cause I see this too. Even with the
rgb:specs too.
(from MicrosoftDocs/terminal#620)
Version number unknown.
printf '\e]12;red\a Foo bar' ; sleep 3
printf '\e]12;rgb:ff/00/00\a Foo bar' ; sleep 3
@echo off
if (%1)==() (goto :usage)
if (%2)==() (goto :usage)
if (%3)==() (goto :usage)
@rem this is a literal ESC and BEL in this next line
echo �]12;rgb:%1/%2/%3�
goto :EOF
:usage
echo Usage: cursor-color ^<red^> ^<green^> ^<blue^>
echo where red, green, blue are color components in hex
echo Ex: cursor-color FF 00 FF will set the cursor to �[38;2;255;0;255mMagenta�[0m
echo:
:EOFReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-AtlasEngineIn-PRThis issue has a related PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.Priority-3A description (P3)A description (P3)Product-TerminalThe new Windows Terminal.The new Windows Terminal.


