[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Q]Something about $TERM of rxvt



Hi,all
用中文再重復一下下面的問題. 希望大家能幫忙解決一下.謝謝!
我想通過編輯 ~/.bashrc 使得當啟動crxvt-gb時,它的locale自動設為zh_CN.GB2312;
當啟動crxvt-big5時,它的locale自動設為zh_TW.Big5;當啟動krxvt時,它的locale自動
設為ja_JP.eucJP, etc. 我本想通過環境變量$TERM來作為判別它們的依據,然而我發現
這三個終端的$TERM值都是rxvt. 我想請教一下通過什麼參數可以判別它們.拜托了!

wen> I hope to edit a ~/.bashrc so that it can set a locale for each terminal 
wen> accoding to the enviroment variable $TERM automaticaly. i.e. xterm-->C, 
wen> crxvt-gb-->zh_CN.GB2312, crxvt-big5-->zh_TW.Big5, krxvt-->ja_JP.eucJP, etc.
wen> But I find all the $TERM of crxvt-gb, crxvt-big5 and krxvt have the same value
wen> "rxvt". Could someone tell me how to distinguish them by a bourne shell.
wen> 
wen> Regards,
wen> 
wen> --Wen
wen> wen@japan.email.ne.jp

-- 
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.



Reply to: