From 2fa9eff0ef98463c1adf84ade4ac016203356b05 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 2 Feb 2026 13:36:23 -0800 Subject: [PATCH] shell-integration/bash: advertise cl=line support --- src/shell-integration/bash/ghostty.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell-integration/bash/ghostty.bash b/src/shell-integration/bash/ghostty.bash index 40fd71b19..00d0bfdc6 100644 --- a/src/shell-integration/bash/ghostty.bash +++ b/src/shell-integration/bash/ghostty.bash @@ -201,7 +201,7 @@ function __ghostty_precmd() { # Marks. We need to do fresh line (A) at the beginning of the prompt # since if the cursor is not at the beginning of a line, the terminal # will emit a newline. - PS1='\[\e]133;A;redraw=last\a\]'$PS1'\[\e]133;B\a\]' + PS1='\[\e]133;A;redraw=last;cl=line\a\]'$PS1'\[\e]133;B\a\]' PS2='\[\e]133;A;k=s\a\]'$PS2'\[\e]133;B\a\]' # Bash doesn't redraw the leading lines in a multiline prompt so @@ -240,7 +240,7 @@ function __ghostty_precmd() { fi # Fresh line and start of prompt. - builtin printf "\e]133;A;redraw=last;aid=%s\a" "$BASHPID" + builtin printf "\e]133;A;redraw=last;cl=line;aid=%s\a" "$BASHPID" _ghostty_executing=0 }