-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cursor color escape codes #184
Comments
Hey, sorry about missing this. There's a couple issues here! We just got support for named colors in Terminal 1.4 (or 1.5? I've lost track). The escape you identified actually does work! On older versions you'll need to use We're trying to make sure we support the xterm appearance OSCs, but we definitely should document that. 😄 |
Closing - chatted with Kayla and we don't currently have a place in these Terminal docs for this sort of xterm appearance shell content. Let's identify a more appropriate place to doc this if it needs to be covered. |
@DHowett @mattwojo sorry to dig this old thread up, but if I do a |
Maybe this is actually an issue that is tracked via microsoft/terminal#11522, but I"m not so sure since I'm not changing input method or anything. |
I'm interested in finding the escape codes to send to a Console (think: win32 console application) that will change the color of the cursor
Environment:
I've read through:
terminal sequences
I've examined other documents such as:
Wikipedia ANSI Codes
I've looked at the Properties panel of the Console App itself and under Terminal >> There's a setting for Cursor Color!
But, what I'm looking for is the exact escape codes to send to the
stdout
of my Win32 console application.Eg:
To change the shape of the cursor (Windows environment as listed above):
Another example of what does work fairly cross-platform:
Modifying the text color is fine. I'm actually interested in modifying the cursor color.
To change Cursor color, this works, albeit on Cygwin/Linux:
But this doesn't work in the Win32 Console Application. I wasn't all that surprised. I just don't know what the right sequence Windows Console (Terminal) expects.
I've searched high and low and cannot find the documentation on what (
ESC
+ stuff ) to send to the Win32 Consolestdout
to render a cursor color.Care to share some guidance on where those codes are to render a specific cursor color?
Thanks.
Edit:
I must have been tired. But, I realized a work-around. I cannot change the color of the cursor, but I can change the color of the text.. Not that exciting, I know.. But.. it means since the default behavior is to invert the color of the text when rendering the cursor, I can (sort of) force the cursor color by choosing a text color (actually background color to think of it) that is the inverted color. Not ideal. Though, but for the purposes I have, it will be a work-around.
Anyway -- if the Doc team for Terminal (Console terminal, aka Win32 Console App, etc.. Properties) ever decide to document the ESC code that I can emit to cause the cursor color rendering, that would be great.
And... it looks like Cursor color has no alpha channel behavior -- Eg., if you get a Cursor color (manually selected), the character underneath is masked. Not a worry. Maybe later, maybe not.
The text was updated successfully, but these errors were encountered: