termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
34.69k stars 3.65k forks source link

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

Open zixijian opened 2 years ago

zixijian commented 2 years ago

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 commented 2 years ago

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. (31298b88, 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. (f545ebf0)

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 commented 2 years ago

Did you have a look at #2600?

agnostic-apollo commented 2 years ago

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