Skip to content
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 colors #716

Open
alabuzhev opened this issue Jul 20, 2023 · 3 comments
Open

Cursor colors #716

alabuzhev opened this issue Jul 20, 2023 · 3 comments

Comments

@alabuzhev
Copy link
Contributor

VT allows changing cursor color dynamically to either the inverse or an arbitrary RGB value.
Do we need this in color settings?
If so, how granular?

  • Command line?
  • Editor?
  • Dialog generic?
  • Dialog input?
  • Warning dialog generic?
  • Warning dialog input?
  • DN_CTLCOLORDLGITEM?
  • Grabber?
  • Something else?

Demo: lua:win.WriteConsole("\x1b]12;rgb:ff/00/ff\x1b\\")

@rohitab
Copy link
Contributor

rohitab commented Jul 21, 2023

I was actually playing around with this last week. I changed the cursor colors from Shortcut Properties > Terminal > Cursor Colors.

If there was an option to change the color for Grabber, I would definitely use it. Dialog inputs and Command line, maybe.

On a side note, is it possible to get the Cursor Shape property to work? I wanted to use the Vertical Bar.

@alabuzhev
Copy link
Contributor Author

is it possible to get the Cursor Shape property to work? I wanted to use the Vertical Bar.

Ugh. Sort of.
It resets to default every time someone touches the cursor size and we do that a lot.
6174 / 2bd5f9d should preserve the size if possible, and thus let you use custom shapes, but you will need to set all these options
Interface.CursorSize1
Interface.CursorSize2
Interface.CursorSize3
Interface.CursorSize4
Interface.GrabberCursorSize

to 0 in far:config to make it work.

The cursor shape also can be changed programmatically, so we can think about how to accommodate that as well.

@rohitab
Copy link
Contributor

rohitab commented Jul 22, 2023

I just tested version 3.0.6174.0 x64. The Cursor Shape property is working now. Thank you

The cursor shape also can be changed programmatically, so we can think about how to accommodate that as well.

That would be nice, since it would allow a separate cursor shape to be used for the Grabber.

Having tried out the Vertical Bar cursor shape now, I find that it is a little hard to see, especially in Dialog inputs. Having support for separate cursor colors, which was the original point of discussion, would definitely be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants