Skip to content
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

[Feature]: Need CSI 5 m (blink) support #2656

Open
zixijian opened this issue Mar 14, 2022 · 3 comments
Open

[Feature]: Need CSI 5 m (blink) support #2656

zixijian opened this issue Mar 14, 2022 · 3 comments

Comments

@zixijian
Copy link

Feature description

Termux can not echo blink effect.

echo -e '\x1b[5mhello'

Some Muds game use blink effect,I see that some people also have a need for cursor blinking, which should be considered the same thing.

Additional information

At present, there is no terminal that can realize this function in Android mobile phones.

As the best terminal software for Android, I think it is necessary for Termux to improve the basic functions.

On pc,xshell & iterm2 etc. can achieve this effect.

@agnostic-apollo
Copy link
Member

Allow users to enable terminal cursor blinking with termux.properties. 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.
This will have a performance impact, so use wisely and at your own risk. Note that you can also change the cursor color by adding cursor property to ~/colors.properties file, like cursor=#FFFFFF for a white cursor. (31298b8, 89a1e02)

https://github.com/termux/termux-app/releases/tag/v0.113

Allow users to set terminal cursor style with termux.properties. The terminal-cursor-style key can be used to set the terminal cursor style. The user can set a string value to block for , underline for _ or bar for | cursor style. The default value is still block. So adding an entry like terminal-cursor-style=bar to termux.properties file will allow users to change to the bar cursor style. After updating the value, termux must be restarted. You can also run termux-reload-settings command so that termux loads the updated value, but only new sessions will use the updated value, existing sessions will not be affected unless you Reset them from terminal's long hold options menu More -> Reset or restart termux activity after double back press to exit. (f545ebf)

https://github.com/termux/termux-app/releases/tag/v0.114

Even though cursor blinking is supported, text blinking is something else and will likely require a lot of work to implement and would be low priority, if possible.

https://bugs.launchpad.net/ubuntu/+source/vte/+bug/590735

https://bugzilla.gnome.org/show_bug.cgi?id=579964

@luisdavim
Copy link

Did you have a look at #2600?

@agnostic-apollo
Copy link
Member

cursor blinking != text blinking . Plan on testing and merging pull request soon if valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants