mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 12:20:07 +00:00
whitelist DCS in startup console output (#2299)
This commit is contained in:
parent
0a9eb73e16
commit
064f4d2209
1 changed files with 3 additions and 1 deletions
|
@ -6605,7 +6605,9 @@ function _p9k_clear_instant_prompt() {
|
||||||
unset _z4h_saved_screen
|
unset _z4h_saved_screen
|
||||||
fi
|
fi
|
||||||
print -rn -- $terminfo[rc]${(%):-%b%k%f%s%u}$terminfo[ed]
|
print -rn -- $terminfo[rc]${(%):-%b%k%f%s%u}$terminfo[ed]
|
||||||
local unexpected=${(S)${${content//$'\e[?'<->'c'}//$'\e['<->' q'}//$'\e'[^$'\a\e']#($'\a'|$'\e\\')}
|
local unexpected=${${content//$'\e[?'<->'c'}//$'\e['<->' q'}
|
||||||
|
unexpected=${(S)unexpected//$'\eP'*[^$'\e']#($'\e\\')}
|
||||||
|
unexpected=${(S)unexpected//$'\e'[^$'\a\e']#($'\a'|$'\e\\')}
|
||||||
# Visual Studio Code prints this garbage.
|
# Visual Studio Code prints this garbage.
|
||||||
unexpected=${${unexpected//$'\033[1;32mShell integration activated\033[0m\n'}//$'\r'}
|
unexpected=${${unexpected//$'\033[1;32mShell integration activated\033[0m\n'}//$'\r'}
|
||||||
if [[ -n $unexpected ]]; then
|
if [[ -n $unexpected ]]; then
|
||||||
|
|
Loading…
Reference in a new issue