这篇文章将为大家详细讲解有关使用java对screen进行配置时需要注意哪些事项,文章内容质量较高,因此小编分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。
java screen的配置详解及注意事项
# Set default encoding using utf8
defutf8 on
## 解决中文乱码,这个要按需配置
defencoding utf8
encoding utf8 utf8
#兼容shell 使得.bashrc .profile /etc/profile等里面的别名等设置生效
shell -$SHELL
#set the startup message
startup_message off
#term linux
## 解决无法滚动
termcapinfo xterm|xterms|xs ti@:te=\E[2J
# 屏幕缓冲区行数
defscrollback 10000
# 下标签设置
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"
#关闭闪屏
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
启动screen:screen
列出screen: screen -ls
恢复screen:screen -rU
-U Run screen in UTF-8 mode,加上-U可以保证恢复时不出现中文乱码
关于使用java对screen进行配置时需要注意哪些事项就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。