]> arthur.barton.de Git - ax-zsh.git/blobdiff - core/11_terminal/11_terminal.zshrc
Fix handling of legacy terminal types
[ax-zsh.git] / core / 11_terminal / 11_terminal.zshrc
index 2da958b1e7feb4a5db589cf8d701bb3f9bb4fda4..5e2306694fed1f45a6086fb3898cff0f72b41d6c 100644 (file)
@@ -139,8 +139,13 @@ axzsh_is_dumb_terminal && return 0
 autoload -Uz colors
 colors
 
-fg[default]="\e[39m"
-bg[default]="\e[49m"
+if axzsh_is_modern_terminal; then
+       fg[default]="\e[39m"
+       bg[default]="\e[49m"
+else
+       fg[default]="\e[37m"
+       bg[default]="\e[47m"
+fi
 
 # Foreground (FG) and background (BG) colors.
 typeset -Ag FG BG