Unverified Commit 3dd83a22 authored by Lawton Nichols's avatar Lawton Nichols Committed by GitHub

fix(lib): send carriage return after `title` to fix #11314 (#11315)

Window and tab titles are changed by emitting an unprintable escape sequence to the terminal. These escape sequences do not play nicely with the TAB character on multiple terminal emulators--they create un-deletable characters on the first line after command execution. Sending "\r" after changing the window and tab titles allows all characters on the first line to be deleted. Fixes #11314
parent 4181e8a2
......@@ -36,6 +36,8 @@ function title {
fi
;;
esac
print -Pn "\r" # move the cursor to the beginning of the line
}
ZSH_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment