fixed UTF-8 support in screen
This commit is contained in:
parent
8f5dc05115
commit
66e16a4982
3 changed files with 33 additions and 16 deletions
26
dotfiles/system/etc/screenrc
Normal file
26
dotfiles/system/etc/screenrc
Normal 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"
|
|
@ -6,10 +6,8 @@ defscrollback 10240
|
|||
# scroll through scrollback
|
||||
termcapinfo xterm* ti@:te@
|
||||
|
||||
# let's get high-tech with 256 colors over here
|
||||
#attrcolor b ".I" # allow bold colors - necessary for some reason
|
||||
#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
|
||||
# use current bg color for erased chars
|
||||
defbce on
|
||||
|
||||
# remapping dangerous keybindings
|
||||
bind k
|
||||
|
@ -24,20 +22,10 @@ bind 'I' login on
|
|||
bind 'O' login off
|
||||
bind '}' history
|
||||
|
||||
# custom keybindings
|
||||
# drop scrollback command
|
||||
bind '/' eval "scrollback 0" "scrollback 15000"
|
||||
|
||||
# status line
|
||||
#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
|
||||
# my preferred default windows
|
||||
screen 0 sudo su -
|
||||
screen 1 sudo ionice -c 3 nice su -
|
||||
screen 2 sudo ionice -c 3 nice su -
|
|
@ -23,6 +23,9 @@ alias Yall="noglob youtube-dl -o \"%(autonumber)s-%(title)s.%(ext)s\""
|
|||
alias units="units -v"
|
||||
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
|
||||
export VISUAL="nano -m" # enable mouse cursor
|
||||
autoload -U edit-command-line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue