首先我先安装rxvt(在shell中).
然后修改cygwin/cygwin.bat文件:
@echo off
D:
chdir D:\share\bin\cygwin\bin
set EDITOR=vi
set VISUAL=vi
set CYGWIN=codepage:oem tty binmode title
rxvt -fn "Lucida Console-14" -e bash --login -i
并配置rxvt控制台的其他属性,修改~/.Xdefaults文件:
Rxvt*geometry: 100x40
Rxvt*background: gray16
Rxvt*foreground: #ffffbf
!Rxvt*borderColor: Blue
!Rxvt*scrollColor: Blue
!Rxvt*troughColor: Gray
Rxvt*scrollBar: True
Rxvt*scrollBar_right: True
!Rxvt*font: Lucida Console-14
!Rxvt.boldFont: Lucida Console-14
!Rxvt*font: -bitstream-bitstream vera sans mono-*-r-*-*-14-*-*-*-*-*-*-*
!Rxvt*boldFont: -bitstream-bitstream vera sans mono-*-r-*-*-14-*-*-*-*-*-*-*
Rxvt*font: -*-courier-medium-r-*-*-14-140-*-75-*-*-*-*
Rxvt*boldFont: -*-courier-bold-r-*-*-14-140-*-75-*-*-*-*
Rxvt*SaveLines: 2000
Rxvt*loginShell: True
! VIM-like colors
Rxvt*color0: #000000
Rxvt*color1: #FFFFFF
Rxvt*color2: #00A800
Rxvt*color3: #FFFF00
Rxvt*color4: #0000A8
Rxvt*color5: #A800A8
Rxvt*color6: #00A8A8
Rxvt*color7: #D8D8D8
Rxvt*color8: #000000
Rxvt*color9: #FFFFFF
Rxvt*color10: #00A800
Rxvt*color11: #FFFF00
Rxvt*color12: #0000A8
Rxvt*color13: #A800A8
Rxvt*color14: #00A8A8
Rxvt*color15: #D8D8D8
! eof
emacs.font: 8x16
emacs.paneFont: 8x16
Emacs.pane.menubar.font: 8x16
Emacs.foreground: white
Emacs.background: black
emacs.geometry: 100x32