开发者

How do i stop cursor blinking in linux console ( ex a cygwin )?

开发者 https://www.devze.com 2023-03-20 18:00 出处:网络
How do i stop the blinking cursor in my cygwin ? I am writing a program , Its a gaming programusing开发者_Python百科 multi-threading But the cursor is blinking on the console. How do i make it stop ?

How do i stop the blinking cursor in my cygwin ? I am writing a program , Its a gaming program using开发者_Python百科 multi-threading But the cursor is blinking on the console. How do i make it stop ? How do I remove that from my console?


It depends on which terminal emulator you're using.

The default terminal is simply a Windows command prompt. A very quick Google search found this.

For mintty, to turn off blinking in the current instance, right-click, then Options, click on Looks, then disable blinking. You can make this permanent by adding the line CursorBlinks=0 to your $HOME/.minttyrc.

For xterm, middle-click and then uncheck Enable blinking cursor, or invoke it with the +bc command-line option. There's also a cursorBlink X resource. I don't seem to have anything set up to make this permanent; I guess xterm disables blinking by default.


Do you want to switch the cursor off completely or do you just want to disable the blinking? The DECTCEM control sequence can do the former, whereas DECSCUSR can do the latter.

Unfortunately the default Cygwin console doesn't support either of those, but the "mintty" terminal does.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号