arp242 / find-cursor

Highlight the cursor position in X11

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not visible on black background

arp242 opened this issue · comments

Was Bitbucket 1:

My terminal windows have a black background and I tend to get the mouse lost in them since they span multiple screens. Since find-cursor uses black circles, they aren't visible in this case.
OTOH, other windows of mine have a white background, so I can't just change the colour.
It would be nice if find-cursor could detect what colour the background is and display circles of an appropriate colour, perhaps?

You can modify the colours by changing the parameters at the top of the file and recompile. That should fix it for you?

I also expanded it a while to ago to add command-line arguments for this to make it a bit easier; but it doesn't really change anything functionally. Not sure why I didn't commit that earlier, but I did just now.

detect what colour the background is and display circles of an appropriate colour, perhaps?

Hm, not sure if this is a good solution; especially not with "mixed-colour" backgrounds. Maybe a better solution is to add a lighter coloured outline, so that it always works for most background colours. I'll have to experiment later...

This was fixed in #6 by adding an -o flag.