mabe02 / lanterna

Java library for creating text-based GUIs
GNU Lesser General Public License v3.0
2.3k stars 243 forks source link

Allow setting cursor blink for Terminal #598

Open Gaming32 opened 8 months ago

Gaming32 commented 8 months ago

The cursor blink can be configured for the terminal emulator by setting its device configuration on creation. However, it would be nice if this could be done for non-emulated terminals as well. xterm supports ?25l to disable blinking and ?25h to enable blinking. This is also supported on Windows's terminal when terminal emulation is enabled.

Gaming32 commented 8 months ago

I was able to fulfill my use case for now by manually writing the appropriate escape sequences to the console.

mabe02 commented 8 months ago

Yes, we should add that if it's part of the ANSI standard

Gaming32 commented 8 months ago

I'm not sure if it's part of the ANSI standard, but it is in xterm. Both Windows Command Prompt and GNOME Terminal work with it.