On Mon, Apr 20, 2009 at 09:24:19PM -0500, Zhengquan Zhang wrote: > Dear debian community, > > This problem has been puzzling me for quite a while. > > I use mlterm(a unicode terminal) to connect to servers. but when I > launch mutt or top or something alike in it. It will fail and say > Error opening terminal: mlterm. > > Then if I do 'TERM=xterm' and it would work.
You're missing the definition of a terminal called "mlterm". You can get it from /usr/share/terminfo/m/mlterm in your original system. Copy it to m/mlterm somewhere where terminfo will look for it On my system: $ strace -estat env TERM=blabla less stat("/home/tzafrir/.terminfo", 0x7ffff85660d0) = -1 ENOENT (No such file or directory) stat("/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/lib/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 WARNING: terminal is not fully functional Missing filename ("less --help" for help) And thus you can use: $HOME/.terminfo/m/mletrm /etc/terminfo/m/mletrm /lib/terminfo/m/mletrm /usr/share/terminfo/m/mletrm -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il | | a Mutt's tzaf...@cohens.org.il | | best ICQ# 16849754 | | friend -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org