env: drop support for reporting prompt positioning, undocumented thing

Reporting the position of the prompt to the terminal emulator is not
standardized nor does it have any other authoritative documentation.
This commit is contained in:
Nero 2023-05-22 08:44:32 +00:00
parent afebf4d1c9
commit ec159b89be
1 changed files with 2 additions and 2 deletions

4
env
View File

@ -18,8 +18,8 @@ PS1=$(
(*) base=$base'\$ ';;
esac
# OSC for terminal: window title and prompt position
osc='\033]2;%s\033\\\\\033]133;A\033\\\\'
# OSC for terminal: window title
osc='\033]2;%s\033\\\\'
test -n "$KSH_VERSION" && printf '\001\r\001'$osc'\001' "$base"
test -n "$BASH_VERSION" && printf '\['$osc'\]' "$base"
test -n "$ZSH_VERSION" && printf '%%{'$osc'%%}' "$base"