首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >什么是有用的.screenrc设置?

什么是有用的.screenrc设置?
EN

Server Fault用户
提问于 2009-05-04 00:17:07
回答 9查看 127.7K关注 0票数 54

基本上像我自己的一些,我已经张贴在下面。我正在寻找增加功能的节目‘屏幕’。至少,看看屏幕底部的“菜单栏”的最后一行。

代码语言:javascript
复制
## 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}]'
EN

回答 9

Server Fault用户

回答已采纳

发布于 2009-05-04 11:22:17

对于那些想要用一种不那么神秘的方式设置一个漂亮的屏幕的人,我可以衷心推荐比布 (以前称为屏幕配置文件)。它在屏幕底部给出了一个很好的默认设置--底线包含各种方便的状态信息,第二条底线包含屏幕窗口的列表。所有这些都可以通过按F9在一个很好的简单ncurses菜单中配置。

函数键映射到常见操作:

  • F2 -创建一个新窗口
  • F3 -转到prev窗口
  • F4 -转到下一个窗口
  • F5 -再发配置文件
  • F6 -与会话分离
  • F7 -进入回滚模式
  • F8 -查看所有键绑定
  • F9 -配置屏幕配置文件
  • F12 -锁定这个终端

本文提供教程和屏幕截图。

从业力(9.10)开始,Byobu在Byobu储存库中。在快感中,它被称为屏幕轮廓。在此之前,可以从这个ppa of从这个下载页面安装它。它也为其他最新发行版广泛打包。

它确实依赖于python,但是一旦您根据自己的喜好设置了byobu,您就可以让它生成一个tar球,其中包含了使用比布-出口在另一台计算机上重新创建屏幕所需的全部内容。

票数 22
EN

Server Fault用户

发布于 2009-05-04 03:16:28

最有用的屏幕定制( IMHO )是将修饰符键更改为C-a以外的其他内容。这是太重要的一个键吃了(进入行的开头,在所有的读行提示,并在emacs中)。我使用C,因为我需要挂起应用程序的频率比在行开始时编辑的次数要少得多。

神奇的词是:

代码语言:javascript
复制
escape ^za
票数 10
EN

Server Fault用户

发布于 2009-06-09 01:40:16

我经常有超过10个窗口运行,并希望有一种方式来选择他们。我了解了如何将C-a Shift+0从9配置为选择windows 10到19。

代码语言:javascript
复制
bind  ! select 11
bind  @ select 12
bind \# select 13
bind  $ select 14
bind  % select 15
bind \^ select 16
bind  & select 17
bind  * select 18
bind  ( select 19
bind  ) select 10

注意#和^上的转义符。

票数 9
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/3740

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档