Screen, SecureCRT, UTF-8 and FreeBSD

Finally I got my environment on FreeBSD UTF-8-lized.

Note on SecureCRT: set Character encoding to “UTF-8″
Note on Screen: set following command in .screenrc

defutf8 on
defc1 off
defencoding utf8

bind b encoding big5 utf8
bind u encoding utf8 utf8

Note on Screen with 256 color:

% cd /usr/ports/sysutils/screen
% make config # XTERM_256 Enable support for 256 colour xterm
% make deinstall reinstall clean

And set following command in .screenrc

term xterm
termcapinfo xterm ‘Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm’
attrcolor b “.I”
attrcolor i “+b”
defbce on

And re-start the screen (not just re-attach it)

Others, refer to yzlin’s post.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • funp
  • Haohao
  • Hemidemi
  • Live
  • MisterWong
  • TwitThis
  • udn
 

Leave a reply

Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan