mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-31 22:08:34 +00:00
fix screen on terminals with 256 color when the screen is not compiled with 256 color support
This commit is contained in:
parent
28abafcf9d
commit
1382c16893
2 changed files with 2 additions and 6 deletions
3
screenrc
3
screenrc
|
@ -19,9 +19,6 @@ nethack on
|
||||||
# mess with bold
|
# mess with bold
|
||||||
attrcolor b ".I"
|
attrcolor b ".I"
|
||||||
|
|
||||||
# get screen to go for 256 colors
|
|
||||||
termcapinfo xterm-256color 'Co#256'
|
|
||||||
|
|
||||||
# erase background with current bg color
|
# erase background with current bg color
|
||||||
defbce on
|
defbce on
|
||||||
|
|
||||||
|
|
5
zshrc
5
zshrc
|
@ -101,7 +101,6 @@ function fix_terminfo_db
|
||||||
{
|
{
|
||||||
if [[ `which infocmp` = "$1/bin/infocmp" ]] ; then
|
if [[ `which infocmp` = "$1/bin/infocmp" ]] ; then
|
||||||
export TERMINFO="$1/share/terminfo"
|
export TERMINFO="$1/share/terminfo"
|
||||||
export TERM=$TERM
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,7 +154,7 @@ esac
|
||||||
|
|
||||||
export TERM=$(fix_term $TERM)
|
export TERM=$(fix_term $TERM)
|
||||||
|
|
||||||
if [[ $TERM == *256* ]] ; then
|
if [[ $TERM == *256* ]] && (infocmp screen-256color-bce &> /dev/null) ; then
|
||||||
export SCREEN_COLOR="-256color"
|
export SCREEN_COLOR="-256color"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -213,7 +212,7 @@ case $TERM in
|
||||||
bindkey '\e[1;5D' emacs-backward-word
|
bindkey '\e[1;5D' emacs-backward-word
|
||||||
bindkey '\e[3~' delete-char
|
bindkey '\e[3~' delete-char
|
||||||
;;
|
;;
|
||||||
linux)
|
linux|vt100)
|
||||||
bindkey '\e[1~' beginning-of-line
|
bindkey '\e[1~' beginning-of-line
|
||||||
bindkey '\e[4~' end-of-line
|
bindkey '\e[4~' end-of-line
|
||||||
bindkey '\e[3~' delete-char
|
bindkey '\e[3~' delete-char
|
||||||
|
|
Loading…
Add table
Reference in a new issue