FarManager icon indicating copy to clipboard operation
FarManager copied to clipboard

Cursor colors

Open alabuzhev opened this issue 2 years ago • 3 comments

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\\")

alabuzhev avatar Jul 20 '23 18:07 alabuzhev

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.

rohitab avatar Jul 21 '23 01:07 rohitab

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 / 2bd5f9d53 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.

alabuzhev avatar Jul 21 '23 22:07 alabuzhev

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.

rohitab avatar Jul 22 '23 02:07 rohitab