java screen configuration details and notes
- 2020-08-22 22:05:14
- OfStack
java screen configuration details and notes
# Set default encoding using utf8
defutf8 on
## Solve Chinese gibberish , This should be configured as needed
defencoding utf8
encoding utf8 utf8
# Compatible with shell make .bashrc .profile /etc/profile Alias and other Settings take effect
shell -$SHELL
#set the startup message
startup_message off
#term linux
## Resolution cannot scroll
termcapinfo xterm|xterms|xs ti@:te=\E[2J
# Number of screen buffer lines
defscrollback 10000
# Lower TAB Settings
caption always "%{=u .G} %-w%<%{=ub .y}%n %t%{=u .G}%+w "
hardstatus alwaysignore
hardstatus alwayslastline "%{= .K} [%l]%<%=%{= .W}@%H %=%{= .y} %Y/%m/%d%{= .m} %C %A"
# Close the splash screen
vbell off
#Keboard binding
bindkey ^[d prev
bindkey ^[f next
# bind Alt`~= to screen0~12
bindkey "^[`" select 0
bindkey "^[1" select 1
bindkey "^[2" select 2
bindkey "^[3" select 3
bindkey "^[4" select 4
bindkey "^[5" select 5
bindkey "^[6" select 6
bindkey "^[7" select 7
bindkey "^[8" select 8
bindkey "^[9" select 9
bindkey "^[0" select 10
bindkey "^[-" select 11
bindkey "^[=" select 12
# bind F5 to create a new screen
bindkey ^[n screen
# bind F6 to detach screen session (to background)
bindkey -k k6 detach
# bind F7 to kill current screen window
bindkey -k k7 kill
# bind F8 to rename current screen window
bindkey -k k8 title
Start screen: screen
List screen: ES13en-ES14en
Restore screen: ES19en-ES20en
-ES24en Run screen UTF UTF-8 mode, plus -ES30en can guarantee no Chinese scrambled code during the recovery
Thank you for reading, I hope to help you, thank you for your support to this site!