Termux Change default Cursor (AKA; "block" cursor) when exiting program such as `tmux` and `yazi`

Hello y'all, i found really annoying bug in Termux, for some reason, if i set the Default Terminal Cursor to pipe in termux.properties file, it change the Cursor to nice pipe cursor, but for some reason that i don't know, everytime i exit from a Program like Yazi, or TMux, the cursor suddenly change to Default one, which is block cursor, for a reason that i don't know, this is really annoying because i have to Restart Termux to reset the Cursor back to pipe cursor, does anyone knows why this happened under the hood, and how do i fix it?
1 Reply
RandomGuy
RandomGuyOP4d ago
FYI, here's how i change the Default Cursor in termux.properties:
terminal-cursor-blink-rate = 450
terminal-cursor-style = bar
terminal-cursor-blink-rate = 450
terminal-cursor-style = bar
Nevermind, i manage to solve this issue for both Yazi and TMux by echoing \e[5 q everytime i exit from Yazi/TMux (wrapped in Function in my .zshrc), which change the cursor to blinking bar everytime i exit those program.

Did you find this page helpful?