fix(prompt): restore cursor visibility on every prompt

Emit \e[?25h in precmd to fix hidden cursor after abrupt SSH
disconnects or interrupted TUI applications.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-13 17:17:07 +00:00
parent 1a2ccdbe2e
commit b0368d85b6

View File

@@ -243,6 +243,7 @@ _dots_preexec() {
_dots_precmd() { _dots_precmd() {
local e=$? d=0 local e=$? d=0
printf '\e[?25h'
# Only show exit code if a command actually ran # Only show exit code if a command actually ran
(( _dots_prompt_cmd_ran )) || e=0 (( _dots_prompt_cmd_ran )) || e=0
_dots_prompt_cmd_ran=0 _dots_prompt_cmd_ran=0