文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>FreeBSD bash在shell下的中文输入

FreeBSD bash在shell下的中文输入

时间:2010-12-25  来源:秩名

在~/.profile或~/.bashrc文件中增加下面的內容:

#stty cs8 -istrip
#stty pass8
export LANG=zh_CN.GBK
export LC_CTYPE=zh_CN.GBK


另外在~/.inputrc(该文件不存在,需要手工创建)文件中增加如下:

# inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.

# Be 8 bit clean.
set meta-flag on
set input-meta on
set output-meta on

# To allow the use of 8bit-characters like the german umlauts, comment out
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
set convert-meta off

 

 

标签分类:

相关阅读 更多 +
排行榜 更多 +
像素太空杀

像素太空杀

飞行射击 下载
忍者手势

忍者手势

飞行射击 下载
勇士X地下城大冒险

勇士X地下城大冒险

角色扮演 下载