Ubuntu終端突然不能輸入中文

1. 問題

沒有做任何輸入法配置的修改,終端下輸入中文後,選擇對應項在terminal上無法顯示,複製粘貼也不行。

2. 解決方案

使用了參考博客中的方法解決了問題,在此記錄一下。
我是直接在/etc/inputrc中直接進行的修改,上面兩行爲原有的,下面兩行爲添加和放開的,之後重啓系統解決了問題。

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

# To allow the use of 8bit-characters like the german umlauts, uncomment
# 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 meta-flag on
set convert-meta off

3. 其他

# 在inputrc中添加如下4行可以增加使用上下鍵自動根據歷史補全輸入
"\e[A": history-search-backward 
"\e[B":history-search-forward 
set show-all-if-ambiguous on 
set completion-ignore-case on
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章