mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
way more effective way of doing screen terminal
This commit is contained in:
parent
456dcf255d
commit
271058a160
2 changed files with 13 additions and 5 deletions
|
@ -14,6 +14,16 @@ function fix_term ()
|
||||||
mlterm)
|
mlterm)
|
||||||
fix_term kterm
|
fix_term kterm
|
||||||
;;
|
;;
|
||||||
|
screen-256colors-bce)
|
||||||
|
fix_term screen-256colors
|
||||||
|
;;
|
||||||
|
screen-256colors)
|
||||||
|
if (infocmp xterm-256colors &> /dev/null) ; then
|
||||||
|
fix_term xterm-256colors
|
||||||
|
else
|
||||||
|
fix_term screen
|
||||||
|
fi
|
||||||
|
;;
|
||||||
screen?*)
|
screen?*)
|
||||||
fix_term screen
|
fix_term screen
|
||||||
;;
|
;;
|
||||||
|
@ -46,7 +56,8 @@ esac
|
||||||
|
|
||||||
export TERM=$(fix_term $TERM)
|
export TERM=$(fix_term $TERM)
|
||||||
|
|
||||||
if [[ $TERM == *256* ]] && (infocmp screen-256color-bce &> /dev/null) ; then
|
if [[ $TERM == *256* ]] ; then
|
||||||
export SCREEN_COLOR="-256color"
|
SCREEN_TERM=$(fix_term screen-256color-bce)
|
||||||
|
alias screen="screen -T ${SCREEN_TERM}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
3
screenrc
3
screenrc
|
@ -25,9 +25,6 @@ defbce on
|
||||||
# turn on utf8
|
# turn on utf8
|
||||||
defutf8 on
|
defutf8 on
|
||||||
|
|
||||||
# set the term to 256 color, maybe
|
|
||||||
term "screen${SCREEN_COLOR}-bce"
|
|
||||||
|
|
||||||
# changes from the default binding " to `windowlist -b', so we don't create
|
# changes from the default binding " to `windowlist -b', so we don't create
|
||||||
# a new empty window
|
# a new empty window
|
||||||
bind \" windowlist
|
bind \" windowlist
|
||||||
|
|
Loading…
Add table
Reference in a new issue