fixed UTF-8 support in screen

This commit is contained in:
Martinez 2016-04-13 10:13:51 +02:00
parent 8f5dc05115
commit 66e16a4982
3 changed files with 33 additions and 16 deletions

View file

@ -0,0 +1,26 @@
defutf8 on
autodetach on
startup_message off
defscrollback 10240
# scroll through scrollback
termcapinfo xterm* ti@:te@
# use current bg color for erased chars
defbce on
# remapping dangerous keybindings
bind k
bind ^k
bind .
bind ^\
bind \\
bind ^h
bind h
bind 'K' kill
bind 'I' login on
bind 'O' login off
bind '}' history
# drop scrollback command
bind '/' eval "scrollback 0" "scrollback 15000"

View file

@ -6,10 +6,8 @@ defscrollback 10240
# scroll through scrollback # scroll through scrollback
termcapinfo xterm* ti@:te@ termcapinfo xterm* ti@:te@
# let's get high-tech with 256 colors over here # use current bg color for erased chars
#attrcolor b ".I" # allow bold colors - necessary for some reason defbce on
#termcapinfo xterm "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm" # tell screen how to set colors. AB = background, AF=foreground
defbce on # use current bg color for erased chars
# remapping dangerous keybindings # remapping dangerous keybindings
bind k bind k
@ -24,20 +22,10 @@ bind 'I' login on
bind 'O' login off bind 'O' login off
bind '}' history bind '}' history
# custom keybindings # drop scrollback command
bind '/' eval "scrollback 0" "scrollback 15000" bind '/' eval "scrollback 0" "scrollback 15000"
# status line # my preferred default windows
#backtick 1 5 5 true
#termcapinfo rxvt* 'hs:ts=\E]2;:fs=\007:ds=\E]2;\007'
#hardstatus string "screen (%n: %t)"
#caption string "%{= kw}%Y-%m-%d;%c %{= kw}%-Lw%{= kG}%{+b}[%n %t]%{-b}%{= kw}%+Lw%1`"
#caption always
# environment
setenv DISPLAY ":0"
# start with a bunch of windows
screen 0 sudo su - screen 0 sudo su -
screen 1 sudo ionice -c 3 nice su - screen 1 sudo ionice -c 3 nice su -
screen 2 sudo ionice -c 3 nice su - screen 2 sudo ionice -c 3 nice su -

View file

@ -23,6 +23,9 @@ alias Yall="noglob youtube-dl -o \"%(autonumber)s-%(title)s.%(ext)s\""
alias units="units -v" alias units="units -v"
alias usystemctl="systemctl --user" alias usystemctl="systemctl --user"
# apparently this is the only way of setting GNU Screen to UTF-8
alias screen="screen -U"
# Edit the current command line in $EDITOR # Edit the current command line in $EDITOR
export VISUAL="nano -m" # enable mouse cursor export VISUAL="nano -m" # enable mouse cursor
autoload -U edit-command-line autoload -U edit-command-line