分页: 1 / 1

总算整了个比较像样的screenrc

发表于 : 2006-09-08 19:07
roylez
如图。真是不试不知道,screen可以如此好用。

发表于 : 2006-09-08 20:05
eexpress
字体有点怪。显得字体边不整齐?

发表于 : 2006-09-09 19:11
rhfcaesar
楼主能不能共享一下啊?谢谢!

发表于 : 2006-09-11 11:19
roylez
ee: 我都觉得字体有时候不是太舒服,不过自己都说不上来问题在哪里。

这个配置可以用F11和F12切换screen窗口,F10改名。始终在屏幕最下方显示hardstatus,为了整这个小状态栏,花了我快一个小时。
我比较喜欢用zsh,不喜欢的人可以把shell zsh注释掉。需要注意的是screen的快捷键如果和vim的冲突的话,vim的快捷键会不起作用,所以我只是把F10,F11,F12绑给了screen。这个screenrc其实还比较粗糙,还有很多东西需要挖掘——比如我现在用screen的时候urxvt的滚动条就不起作用了。

代码: 全选

# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
### Created by Brad Sims  25/06/2004 
### Modified by Roy Zuo 08/08/2006
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
##    Explanation of hardstatus line    ##

# Ignore the ' marks if you use these examples for yourself

# Note that if you want to use the color brown under konsole
# You actually use bright yellow (%{Y}). 

# Note the embeded space after the colon, I feel 
#  it just looks nicer with a blank between the
#  text and console edge:
#   '%{=b}%{G} Screen(s): '

# This prints the window listing in blue:
#   '%{b}%w'

# This right-aligns what follows:
#   '%='

# This displays the time (hours and minutes) in 12hr format 
# and adds an AM/PM flag, in bold green:
#   '%{G}%C%A'

# This displays the day of the week:
#   '%D'

#This displays the date in Mon/day/year format:
# and again I embeded a space to give me one space
# between the text and console edge:
#  '%M/%d/%Y '

# Green text, time, and date; windows in blue:
hardstatus alwayslastline "%{=b}%{b}%-w%{.BW}%10>%n*%t%{-}%+w%< %=%{kG}%C%A %D, %Y-%m-%d"
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
##    Some general options    ##

# Turn off start message:
startup_message off	# default: on

# Automatically detach on hangup, or the screen will keep eating your memory after the terminal emulator has been terminated.
autodetach on		# default: on

# Set messages timeout to one second: 
msgwait 1

#use zshell as default shell. 
shell zsh
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
##    Keybindings    ##

# bind F1  to select 1
# bind F7  to detach screen session from this terminal
# bind F8  to kill current screen window.
# bind F9  to create a new screen
# bind F10 to rename current screen window
# bind F11 to move to previous window
# bind F12 to move to next window
#bindkey -k k1 select 1
#bindkey -k k7 detach
#bindkey -k k8 kill
#bindkey -k k9 screen
bindkey -k k; title
bindkey -k F1 prev
bindkey -k F2 next
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #

发表于 : 2006-09-11 16:50
rhfcaesar
谢谢楼主哦

Re: 总算整了个比较像样的screenrc

发表于 : 2009-05-07 12:16
tianlijian
太好了,谢谢楼主。 :em09 :em09 :em09

Re: 总算整了个比较像样的screenrc

发表于 : 2009-05-07 12:29
poet

代码: 全选

termcapinfo xterm|xterms|xs|rxvt ti@:te@
关于不能使用滚动条的问题请使用我上面的配置。

Re: 总算整了个比较像样的screenrc

发表于 : 2009-05-07 12:54
roylez
2006年的都被挖了

Re: 总算整了个比较像样的screenrc

发表于 : 2009-05-09 18:06
buptlpf
恩,被挖上来我才可以google到。。。。。

Re: 总算整了个比较像样的screenrc

发表于 : 2009-05-09 23:17
onelynx
很厉害啊,挖的很辛苦吧

Re: 总算整了个比较像样的screenrc

发表于 : 2009-05-10 6:32
roylez
buptlpf 写了:恩,被挖上来我才可以google到。。。。。
笨笨,看我的签名档。