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:
@@ -243,6 +243,7 @@ _dots_preexec() {
|
||||
|
||||
_dots_precmd() {
|
||||
local e=$? d=0
|
||||
printf '\e[?25h'
|
||||
# Only show exit code if a command actually ran
|
||||
(( _dots_prompt_cmd_ran )) || e=0
|
||||
_dots_prompt_cmd_ran=0
|
||||
|
||||
Reference in New Issue
Block a user