linux – 什么是有用的.screenrc设置?

基本上就像我在下面发布的一些.我正在寻找程序“屏幕”的附加功能.至少要看一下屏幕会话底部一个梦幻般的“菜单栏”的最后一行.
## gyaresu's .screenrc 2008-03-25
# http://delicious.com/search?p=screenrc

# Don't display the copyright page
startup_message off

# tab-completion flash in heading bar
vbell off

# keep scrollback n lines
defscrollback 1000

# Doesn't fix scrollback problem on xterm because if you scroll back
# all you see is the other terminals history.
# termcapinfo xterm|xterms|xs|rxvt ti@:te@

# These will let you use 
bind -c selectHighs 0 select 10 #these three commands are 
bind -c selectHighs 1 select 11 #added to the command-class
bind -c selectHighs 2 select 12 #selectHighs
bind -c selectHighs 3 select 13
bind -c selectHighs 4 select 14
bind -c selectHighs 5 select 15


bind - command -c selectHighs   #bind the hyphen to 
                                #command-class selectHighs 


screen -t rtorrent  0   rtorrent    
#screen -t tunes        1   ncmpc --host=192.168.1.4 --port=6600 #was for connecting to MPD music server.
screen -t stuff     1
screen -t irssi     2   irssi
screen -t dancing   4       
screen -t python    5   python
screen -t giantfriend   6   these_are_ssh_to_server_scripts.sh
screen -t computerrescue    7   these_are_ssh_to_server_scripts.sh
screen -t BMon      8   bmon -p eth0
screen -t htop      9   htop
screen -t hellanzb  10  hellanzb
screen -t watching  3   
#screen -t interactive.fiction  8
#screen -t hellahella   8   paster serve --daemon  /home/gyaresu/downloads/hellahella/hella.ini 

shelltitle "$|bash"

# THIS IS THE PRETTY BIT
#change the hardstatus settings to give an window list at the bottom of the                                                                        
##screen,with the time and date and with the current window highlighted                                                                            
hardstatus             alwayslastline                                                                                                                          
#hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'

解决方法

对于那些想要一个不太神秘的方式来获得一个漂亮的屏幕设置的人,我可以衷心推荐 byobu(以前称为屏幕配置文件).它为您提供了一个很好的默认设置,在屏幕的底部 – 底线包含各种方便的状态信息,第二行从底部包含一个屏幕窗口列表.所有这些都可以通过按F9在一个简单的ncurses菜单中配置.

功能键映射到常用操作:

> F2 – 创建一个新窗口
> F3 – 转到上一个窗口
> F4 – 转到下一个窗口
> F5 – 重新载入配置文件
> F6 – 从会话中分离
> F7 – 进入回滚模式
> F8 – 查看所有键绑定
> F9 – 配置屏幕配置文件
> F12 – 锁定此终端

this article for a tutorial and screenshots.

Byobu在karmic(9.10)之后的ubuntu存储库中.在jaunty中,它被称为屏幕配置文件.在此之前,它可以从download pagethis ppa开始安装.它也被广泛打包用于其他最新的发行版.

它确实依赖于python,但是一旦你按照自己喜欢的方式设置了byobu,就可以生成一个tar球,其中包含使用byobu-export在另一台计算机上重新创建屏幕所需的全部内容.

相关文章

linux常用进程通信方式包括管道(pipe)、有名管道(FIFO)、...
Linux性能观测工具按类别可分为系统级别和进程级别,系统级别...
本文详细介绍了curl命令基础和高级用法,包括跳过https的证书...
本文包含作者工作中常用到的一些命令,用于诊断网络、磁盘占满...
linux的平均负载表示运行态和就绪态及不可中断状态(正在io)的...
CPU上下文频繁切换会导致系统性能下降,切换分为进程切换、线...