Open randohinn opened 2 years ago
Internally, GTKTerm uses VTE as a terminal emulator widget. So everything related to the visual appearance of the terminal has to be configured through the VTE APIs.
As far as I know, VTE supports different cursor shapes (block, underline, vertical beam) and allows enabling / disabling cursor blinking, but does not allow hiding the cursor completely. If this is true (and I'd be glad to be disproven), the cursor cannot be hidden using the official VTE API.
However, there is a much easier way to hide the cursor:
There is an ANSI escape sequence that hides and unhides the cursor that GTKTerm respects. So, if you have control over the device you are communicating with, you can just send this control sequence from the device. For example, if you have printf
on the device (e.g., microcontroller), this is how you would hide the cursor:
printf("\033[?25l");
And this is how you would un-hide it:
printf("\033[?25h");
In theory, it would be possible to manually "send" these escape sequences to VTE internally within GTKTerm to add a hide/unhide cursor menu item, but I would prefer not to go there if not strictly necessary...
What changes to the source would be required to enable the complete hiding of the cursor?