回头看
Visiting newsmth series bbs with gnome-terminal
Lonnie 发表于 2009-05-11 11:18:01
The command line is something like this.
LANG=zh_CN.GB18030 gnome-terminal --disable-factory --window-with-profile=bbs \
--hide-menubar --maximize --title=newsmth -x telnet newsmth.net
To enable this you need to install zh_CN.GB18030 locale, it is not installed correctly in ubuntu 8.10 by default even when you installed all Chinese support. Add a line like:
zh_CN.GB18030 GB18030
in file /var/lib/locales/supported.d/zh, and run:
sudo dpkg-reconfigure locales
You should also need add a profile named “bbs” to gnome-terminal. I use an English monospace font and it will switch to your default Chinese font when displaying Chinese characters. (English characters in Chinese fonts are usually ugly.) Please reference my .fonts.conf to see how to set a default Chinese font (.fonts.conf is located in your home directory, if there does not exist one, create one yourself.) You may also want to use a larger font size, and disable scrollbars. The coolest thing about this is that you can set a background image for it…
/usr/share/vte/termcap/xterm file, change line :kh=\EOH:@7=\EOF:\ to :kh=\E[1~:@7=\E[4~:\
I am sure this key bind modifying is just a sort of walkaround; it has some risk to change the default behavior of xterm emulation. I tried to add my own termcap, but it did not work exactly the same as xterm. I think perhaps there are some other config files outside the file /usr/share/vte/termcap/xterm for xterm emulation. Plus, gnome-terminal do not call vte_terminal_set_emulation at all, it is just using the default one. (Yeah, I have seen the source code.)
Anyway it is fine till now. Everything is cool.
How to install a font in Ubuntu?
Lonnie 发表于 2009-05-11 11:14:34
Second, copy your font file(s) into that folder.
Third, it is installed.
