From 950f222602e6a99f1eeb152e0cf5163277f502da Mon Sep 17 00:00:00 2001 From: hugogogo Date: Fri, 30 Oct 2026 00:10:59 +0100 Subject: [PATCH] adding tricks to solve vibe problems about color and window repaint --- config_files/.screenrc | 7 +++---- config_files/.zshrc | 10 ++++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/config_files/.screenrc b/config_files/.screenrc index 4a88ef2..b5d4e69 100644 --- a/config_files/.screenrc +++ b/config_files/.screenrc @@ -26,10 +26,9 @@ hardstatus alwayslastline # %m month # %y year hardstatus string "%{= KW}%n %t %=%c %D %d-%m-%y" -#hide hardstatus: ctrl-a f -bind f eval "hardstatus ignore" -#show hardstatus: ctrl-a f -bind F eval "hardstatus alwayslastline" + +# trick to force a full window repaint (press C-a r), fixes display glitches (e.g. with vibe) +bind r eval "hardstatus ignore" "hardstatus alwayslastline" #screen open a new windows # -t assign a title diff --git a/config_files/.zshrc b/config_files/.zshrc index 17330ca..b25e26c 100644 --- a/config_files/.zshrc +++ b/config_files/.zshrc @@ -4,10 +4,6 @@ #PS1="%(?:%{%}➜ :%{%}➜ ) %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)" #PS1='%(?:%{%}➜ :%{%}➜ ) %{$fg[cyan]%}%test%{$reset_color%} $(git_prompt_info)' -# launch vlc or mpv in flatpax sandboxed -mpv-sandbox() { flatpak run io.mpv.Mpv "$@"; } -vlc-sandbox() { flatpak run org.videolan.VLC "$@"; } - # ---------------------------------------------------- # default configs @@ -221,5 +217,11 @@ export PATH=$JAVA_HOME/bin:$PATH # to print the date for the history command setopt EXTENDED_HISTORY +# screen doesn't relay 24-bit color but passes COLORTERM through, so apps +# wrongly emit truecolor (blinking text, see mistral-vibe#1248). +# $STY is set only inside screen windows: this targets screen alone. +# NOTE: remove if a future screen (>= 5.x) relays truecolor. +if [ -n "$STY" ]; then unset COLORTERM; fi + . "$HOME/.local/bin/env"