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可以保证恢复时不出现中文乱码
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
如对本文有疑问, 点击进行留言回复!!
unity的错误解决办法:NullReferenceException: Object reference not set to an instance of an object;tiny proje
Hadoop 之 HDFS (HDFS 数据流的 读写 流程)
听说你一读Spring源码就懵逼?我帮你把架子搭好了,你填就行!
首席架构师推荐:金融保险领域数字化转型实践--如何优雅地修改业务中台中分层应用Maven多模块的版本号?(命令导入式)
[JVM学习之路]一、初识JVM,了解其结构、模型及生命周期
网友评论