Showing posts with label terminal. Show all posts
Showing posts with label terminal. Show all posts

Tuesday, July 15, 2008

现在的终端screen+urxvt

screen的配置文件

~/.screenrc.html
 1 #
 2 # This is an example for the global screenrc file.
 3 # You may want to install this file as /usr/local/etc/screenrc.
 4 # Check config.h for the exact location.
 5 #
 6 # Flaws of termcap and standard settings are done here.
 7 #Wed 21 Sep 2011 12:20:15 AM CST
 8 
 9 #startup_message off
10 
11 #defflow on # will force screen to process ^S/^Q
12 
13 deflogin on
14 #autodetach off
15 
16 vbell on
17 vbell_msg "   Wuff  ----  Wuff!!  "
18 
19 # all termcap entries are now duplicated as terminfo entries.
20 # only difference should be the slightly modified syntax, and check for
21 # terminfo entries, that are already corected in the database.
22 # 
23 # G0    we have a SEMI-GRAPHICS-CHARACTER-MODE
24 # WS    this sequence resizes our window.
25 # cs    this sequence changes the scrollregion
26 # hs@   we have no hardware statusline. screen will only believe that
27 #       there is a hardware status line if hs,ts,fs,ds are all set.
28 # ts    to statusline
29 # fs    from statusline
30 # ds    delete statusline
31 # al    add one line
32 # AL    add multiple lines
33 # dl    delete one line
34 # DL    delete multiple lines
35 # ic    insert one char (space)
36 # IC    insert multiple chars
37 # nx    terminal uses xon/xoff
38 
39 # 256color
40 terminfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
41 
42 # 这是配置那个tab bar
43 hardstatus alwayslastline
44 hardstatus string "%{=b}%{b}%-w%{.BW}%10>[%n %t]%{-}%+w%< %=%{G}%C%A, %Y-%m-%d"
45 #caption always "%{=u kC} %= %-w%L>%{=b G}[:%n %t:]%{-}%52<%+w %L=" termcapinfo xterm|rxvt ti@:te@
46 # screen里面的所有进程退出,screen就自动退出
47 autodetach on # default: on
48 # 退出vim/nano之后自动刷新屏幕
49 altscreen on
50 # 启动等待,显示版本
51 msgwait 2 version
52 # 启动信息
53 startup_message off # default: on
54 # 启用beep报错
55 #vbell off
56 # 默认的shell,不设置的话就是bash
57 # shell zsh
58 ## Keybindings ##
59 # C-a改为C-l
60 #escape ^L^L
61 # F10改标题
62 bindkey -k k; title
63 # F11左边的tab
64 bindkey -k F1 prev
65 # F12右边的tab
66 bindkey -k F2 next
67 
68 #remove some stupid / dangerous key bindings
69 bind ^k
70 #bind L
71 bind ^\
72 #make them better
73 bind \\ quit
74 bind K kill
75 bind I login on
76 bind O login off
77 bind } history
78 

urxvt配置

~/.Xdefaults.html
 1 ! vim: fdm=marker
 2 ! 修改了这个文件,必须$xrdb .Xdefaults让配置生效
 3 
 4 !! RXVT setting /*{{{*/
 5 !! Color
 6 !URxvt.background:black
 7 URxvt.background: [0]#000000
 8 !URxvt.foreground:gray60
 9 !URxvt.foreground:white
10 URxvt.foreground: #ffffff
11 !URxvt.geometry: 85x30+180+200
12 URxvt.colorBD:yellow
13 URxvt.colorUL:green
14 URxvt.cursorColor:red3
15 URxvt.color0:black
16 URxvt.color1:red3
17 URxvt.color2:springgreen
18 URxvt.color3:wheat3
19 URxvt.color4:navy
20 URxvt.color5:magenta4
21 URxvt.color6:steelblue1
22 URxvt.color7:gray85
23 URxvt.color8:gray10
24 URxvt.color9:orangered2
25 URxvt.color10:chartreuse3
26 URxvt.color11:lightgoldenrod2
27 URxvt.color12:skyblue1
28 URxvt.color13:pink1
29 URxvt.color14:lightblue1
30 URxvt.underlineColor: yellow
31 !urxvt typical
32 URxvt.cutchars: "`\"()';@?=,*<>[]{|}"
33 !Scroll
34 URxvt.scrollBar: true
35 URxvt.scrollBar_right: true
36 URxvt.scrollBar_floating: true
37 URxvt.scrollstyle: plain
38 URxvt.saveLines: 8192
39 !滚屏设置
40 URxvt.mouseWheelScrollPage:true
41 URxvt.scrollTtyoutput: False
42 URxvt.scrollWithBuffer: true
43 URxvt.scrollTtyKeypress: true
44 !cursor blink
45 URxvt.cursorBlink:true
46 !边框
47 URxvt.borderLess: false
48 !fonts
49 URxvt.font: \
50     xft:DejaVu Sans Mono:size=8, \
51     xft:WenQuanYi MicroHei Mono:pixelsize=12
52 URxvt.boldfont: \
53     xft:DejaVu Sans Mono:size=8, \
54     xft:WenQuanYi MicroHei Mono:pixelsize=12
55 !Xft.dpi:96
56 !URxvt.font:xft:WenQuanYi Micro Hei Mono:size=10:style=Regular:antialias=true,xft:WenQuanYi Micro Hei Mono:size=9:style=Regular:antialias=true
57 !URxvt.boldfont:xft:WenQuanYi Micro Hei Mono:size=10:style=BOld:antialias=true,xft:WenQuanYi Micro Hei Mono:size=9:style=Bold:antialias=true
58 !URxvt.font:xft:Dejavu Sans Mono-10,xft:WenQuanYi Bitmap Song-10
59 !URxvt.boldFont:xft:Dejavu Sans Mono-10:Bold,xft:WenQuanYi Bitmap Song-10:Bold
60 
61 !italicFont and boldItalicFont undefined
62 !URxvt.font: xft:Luxi Mono:regular:antialias=True:pixelsize=15,
63 !URxvt.font: xft:Monaco:medium:autohint=True:size=10, \
64 !                xft:DejaVu Sans Mono:book:autohint=True:size=10, \
65 !                xft:wenquanyi bitmap song:medium:pixelsize=15:antialias=True
66 !URxvt.boldFont: xft:Luxi Mono:bold:antialias=True:pixelsize=15,
67 !URxvt.boldFont: xft:Monaco:bold:autohint=True:size=10, \
68 !                xft:DejaVu Sans Mono:bold:autohint=True:size=10, \
69 !                xft:wenquanyi bitmap song:bold:pixelsize=15:antialias=True
70 
71 
72 !Input Method
73 URxvt.inputMethod: ibus
74 !URxvt.preeditType: OverTheSpot
75 !URxvt.imFont: WenQuanYi Bitmap Song
76 !Open URLs in firefox tabbar
77 !!支持tab
78 ! tab切换:shift+left/shift+right
79 ! 移动tab:ctrl+left/ctrl+right
80 ! 新建tab:shift+down
81 URxvt.perl-ext-common:  default,matcher,tabbed
82 URxvt.urlLauncher:      /usr/bin/firefox
83 URxvt.matcher.button:   1
84 
85 /*}}}*/