.screenrc
code ~/.screenrc or vim or nano
and put this
# Current settings for scrolling and encoding
termcapinfo xterm* ti@:te@
defutf8 on
term screen-256color
defscrollback 10000
encoding utf8
# Add these lines for better keyboard handling
bindkey -k ku stuff \033[A
bindkey -k kd stuff \033[B
bindkey -k kl stuff \033[D
bindkey -k kr stuff \033[C
# Allow alternate screen
altscreen on
# Set terminal to xterm-256color for better compatibility
terminfo xterm-256color hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
# Make bash history work properly
shell -$SHELL
#study.marearts.com
detach or recreate screen
Thank you.
No comments:
Post a Comment