-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Terminal emulation: blinking cursor? #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't think the cursor ANSI escape sequences for blinking are supported, either, but block, | and _ are: |
Any progress for this issue? |
So far, blink style is not supported by termux. pip install rich
python -m rich|grep blink the word blink will be still not blinking. |
@Freed-Wu: This issue is about having a blinking cursor. That is not the same thing as blinking text. |
sorry for my error :( |
Hope the terminal emulation can support the blinking cursor. Without it, there are two practical problems I met when using termux:
|
It shows this but it doesn't show the password stuff
…On Sat, May 15, 2021, 12:36 agnostic-apollo ***@***.***> wrote:
Closed #153 <#153> via 31298b8
<31298b8>
.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#153 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARU3YDECCLGNQ2MI2WEGXOLTNZMENANCNFSM4CO2JWVQ>
.
|
It doesn't should what password "stuff"? |
This comment has been minimized.
This comment has been minimized.
This `terminal-cursor-blink-rate` key can be used to enable terminal cursor blinking. The user can set an int value between `100` and `2000` which will be used as blink rate in millisecond. The default value is `0`, which disables cursor blinking. So adding an entry like `terminal-cursor-blink-rate=600` to `~/termux.properties` file will make the cursor attempt to blink every 600ms. Running `termux-reload-settings` command will also update the cursor blinking rate instantaneously if changed. A background thread is used to control the blinking by toggling the cursor visibility and then invalidating the view every x milliseconds set. This will have a performance impact, so use wisely and at your own risk. If the cursor itself is disabled, which is controlled by whether DECSET_BIT_CURSOR_ENABLED (DECSET 25, DECTCEM), then blinking will be automatically disabled. You can enable the cursor with `tput cnorm` or `echo -e '\e[?25h'` and disable it with `tput civis` or `echo -e '\e[?25l'`. Note that you can also change the cursor color by adding `cursor` property to `~/colors.properties` file, like `cursor=#FFFFFF` for a white cursor. The `TermuxPropertyConstants` class has been updated to `v0.9.0`. Check its Changelog sections for info on changes. Closes termux#153
This `terminal-cursor-blink-rate` key can be used to enable terminal cursor blinking. The user can set an int value between `100` and `2000` which will be used as blink rate in millisecond. The default value is `0`, which disables cursor blinking. So adding an entry like `terminal-cursor-blink-rate=600` to `~/termux.properties` file will make the cursor attempt to blink every 600ms. Running `termux-reload-settings` command will also update the cursor blinking rate instantaneously if changed. A background thread is used to control the blinking by toggling the cursor visibility and then invalidating the view every x milliseconds set. This will have a performance impact, so use wisely and at your own risk. If the cursor itself is disabled, which is controlled by whether DECSET_BIT_CURSOR_ENABLED (DECSET 25, DECTCEM), then blinking will be automatically disabled. You can enable the cursor with `tput cnorm` or `echo -e '\e[?25h'` and disable it with `tput civis` or `echo -e '\e[?25l'`. Note that you can also change the cursor color by adding `cursor` property to `~/colors.properties` file, like `cursor=#FFFFFF` for a white cursor. The `TermuxPropertyConstants` class has been updated to `v0.9.0`. Check its Changelog sections for info on changes. Closes termux#153
I'm not sure it's a bug, because the last time I dug into the intricacies of Unix terminal definitions was really long ago, and I ran away screaming. But it kind of presents a practical problem:
The cursor does not natively blink, and Emacs can't make it blink.
Also, the result of running
tput cnorm
andtput cvvis
commands is identical, a rectangle cursor, when the first one is supposed to produce an underscore cursor, so something is very probably wrong.This is kind of a problem in Emacs, because when background is used for highlighting (i.e. on TODO items in org-mode) the block cursor can become completely invisible while over the highlighted text, and blinking cursor becomes a necessity.
The text was updated successfully, but these errors were encountered: