thestinger / termite

Termite is obsoleted by Alacritty. Termite was a keyboard-centric VTE-based terminal, aimed at use within a window manager with tiling and/or tabbing support.
https://github.com/alacritty/alacritty
2.74k stars 241 forks source link

Specify mouse cursor style / disable graphical text selection #700

Closed scrouthtv closed 4 years ago

scrouthtv commented 4 years ago

My default cursor is a high visibility, red one: image

However, as soon as I move my cursor onto the termite window, it turns into the text selection tool: image

Which - after all - makes sense. However, is it possible to deactivate the graphical text selection all together, as I don't use it at all? Or is there some way to at least specify the mouse cursor style to use (because it after all is kind of hard to spot the tiny text selection cursor)?

Thanks in advance.

egmontkob commented 4 years ago

Apologies in advance for chiming in as a non Termite developer, as well as not directly answering your question.

The given cursor style is used not only in VTE (the terminal emulator widget used by Termite), but all sorts of applications (other terminal emulators, graphical text editors, word processors, web browsers etc.) over all sorts of text (pretty much everything that's editable or at least selectable with the mouse).

I'm wondering: Do you have a big red vertical bar cursor showing up there, in those plenty other applications?

If not, you should file a bugreport against your cursor theme to include a promintent red I-bar shape.

If do you, though, then we should investigate why VTE doesn't use that one for you – it does for me for the cursor themes I have installed.

scrouthtv commented 4 years ago

This isn't any special cursor theme.. I just replaced the cursor file with the red one and left the other ones as-is.

I suppose that termite isn't even explicitly setting the cursor theme, but it's rather some lower level interface that prints the text which is also setting the cursor theme.

The text selection cursor style is indeed as well displayed in any other terminal emulator & text editors (which is how it is supposed to be - I guess), but in this specific case I don't need it.

Thanks for your help nevertheless : )

egmontkob commented 4 years ago

This isn't any special cursor theme.. I just replaced the cursor file with the red one and left the other ones as-is.

You can just replace the other cursor files as well – "xterm" in particular –, problem solved :)

I suppose that termite isn't even explicitly setting the cursor theme, but it's rather some lower level interface that prints the text which is also setting the cursor theme.

It's called VTE that prints the text and does all the terminal emulation, and it's this one choosing the particular cursor shape (e.g. arrow vs. i-bar) from the cursor theme. How to choose a cursor theme belongs to your desktop (I'm unaware of technical details here).

scrouthtv commented 4 years ago

Oh nice, to be perfectly honest, I wasn't aware that there was an actual xterm cursor...

I wanted to keep the text selection tool in any other application that has text, so I didn' want to replace the text cursor, but linking xterm to default did the trick.

Thanks for the help. :)