6.3. X Window 下支援 XIM 的中文終端機

6.3.1. aterm

aterm 是一套彩色 vt102 終端機軟體, 支援透明和 XIM。

筆者目前使用的設定 ~/.Xdefaults

    ! Begin ports/chinese/aterm configuration
    aterm.borderColor:              black
    aterm.background:               black
    aterm.backspacekey:             "^H"
    aterm.cursorColor:              IndianRed
    aterm.foreground:               gray98
    aterm.geometry:                 80x24
    aterm.inputMethod:              xcin
    aterm.multichar_encoding:       big5
    aterm.preeditType:              OverTheSpot
    aterm.scrollTtyKeypress:        True
    aterm.scrollTtyOutput:          False
    aterm.scrollBar_right:          True
    aterm.shading:                  30
    aterm.termName:                 xterm-color
    aterm.transparent: True
    aterm.transpscrollbar: True
    aterm.troughColor:              black
    !您可選擇想要的字體大小
    ! 國喬 16pt, 國喬 16pt
    aterm.font:                     8x16
    aterm.mfont:                    kc15f
    ! End ports/chinese/aterm configuartion

snapshot: http://freebsd.sinica.edu.tw/~statue/snapshot/aterm.png

WWW: http://aterm.sourceforge.net/

6.3.2. crxvt

目前 crxvt 有三個版本, rxvtrxvt-big5rxvt-gb 等三種,都支援 XIM, 建議使用 rxvt-big5,原因如下。

目前在 ports/chinese/rxvt 無法使用 TrueType 的中文字型來顯示。

crxvt 的安裝:

    # cd /usr/ports/chinese/rxvt-big5
    # make install
         

另外再編輯 ~/.Xdefaults 來完成中文設定, 以下是筆者目前的設定:

    ! Begin ports/chinese/rxvt configuration
    crxvt.borderColor:              black
    crxvt.background:               black
    crxvt.backspacekey:             "^H"
    crxvt.cursorColor:              IndianRed
    crxvt.foreground:               gray98
    crxvt.geometry:                 80x24
    crxvt.inputMethod:              xcin
    crxvt.multichar_encoding:       big5
    crxvt.preeditType:              OverTheSpot
    crxvt.scrollTtyKeypress:        True
    crxvt.scrollTtyOutput:          False
    crxvt.scrollBar_right:          True
    crxvt.termName:                 xterm-color
    crxvt.troughColor:              black
    !您可選擇想要的字體大小
    ! 國喬 16pt, 國喬 16pt
    crxvt.font:                     8x16
    crxvt.mfont:                    kc15f
    ! End ports/chinese/rxvt configuartion
    
    ! Begin ports/chinese/rxvt-big5 configuration
    rxvt.borderColor:              black
    rxvt.background:               black
    rxvt.backspacekey:             "^H"
    rxvt.cursorColor:              IndianRed
    rxvt.foreground:               gray98
    rxvt.geometry:                 80x24
    rxvt.inputMethod:              xcin
    rxvt.multibyte_cursor:         yes
    rxvt.multichar_encoding:       big5
    rxvt.preeditType:              OverTheSpot
    rxvt.scrollTtyKeypress:        True
    rxvt.scrollTtyOutput:          False
    rxvt.scrollBar_right:          True
    rxvt.termName:                 xterm-color
    rxvt.troughColor:              black
    !您可選擇想要的字體大小
    ! 國喬 16pt, 國喬 16pt
    rxvt.font:                     8x16
    rxvt.mfont:                    kc15f
    ! End ports/chinese/rxvt-big5 configuartion

不過 crxvt 無法使用拷貝與貼上到其他的應用軟體,所以我通常都會改用 Eterm 來替代。

snapshot: http://freebsd.sinica.edu.tw/~statue/snapshot/crxvt.png

WWW: http://www.rxvt.org/

6.3.3. Eterm

除了 crxvt 以外的另一個選擇,支援 XIM,功能少但是比 crxvt 穩定。 tinting+transparency+scrollbar 則是另一個賣點。

如果習慣了 backspace 送出 ^H,可以將 eterm.backspacekey: "^H" 設定寫在 ~/.Xdefaults

Eterm 的安裝:

    # cd /usr/ports/chinese/eterm
    # make install
         

比較常用的參數如:-P "gaia.jpg@100x100"-P "galleon.jpg@100x100"-P "fourthday.jpg@100x100"-P "night_of_the_dragon.jpg@100x100" 等漂亮的底圖。所以筆者通常都會把圖加到 /usr/X11R6/share/Eterm/pix/, 並修改 /usr/X11R6/share/Eterm/pix/pixmaps.list 只留自己喜歡的圖。底圖以深色系為主,因為預設的字是白色。 或是用自己喜歡的圖 -P "ffx.jpg@100x100"

snapshot: http://freebsd.sinica.edu.tw/~statue/snapshot/Eterm.png

WWW: http://www.eterm.org/