
Windows 10 Linux サブシステムで nano を使用してファイルを編集するたびに、表示の問題が発生します。
Bash/SSH を使用してリモート システム (Virtualbox 上のローカル CentOS7 VM) に接続します。次に、nano を使用してリモート システム上のファイルを編集します。
ファイルを開いてテキストを削除し始めると、突然テキストの行全体が消え始めます。閉じて作業をやり直さなければなりません。飽きたら vim に切り替えます。基本的な作業には nano の方が適しています。
他にもこれを見た人はいますか?
編集#1
- ドキュメントをnanoでナビゲートするだけでこの問題が発生する可能性があります
- vimとPuttyは同じように動作しない
- Ctrl+Shift + 6 では問題は解決しません
- 基本的にCentOS7のバニラインストールを使用し、シェルに変更を加えない
- 私の知る限り、この問題はUbuntu Server VPSにアクセスするときには発生しないようです。
答え1
これは互換性のないリモート terminfo によって発生します。次の修正を試してください:
TARobison commented on Feb 22, 2017 •
@ShimShamSam I had the exact same problem and it was killing me.
I work on a few different servers and only the CentOS one was behaving
like this. Using the following when I log in has so far fixed the problem
for me.
stty sane
export TERM=linux
I'm new to all of this, so maybe we aren't talking about the same thing
here, but I thought I'd offer what little I could.`
詳細はこちら:参考: WSL のリリースは 2017 年 11 月 14 日に開始されます。
これは同様の問題です。問題を解決できない場合は、次の点を確認してください。https://serverfault.com/questions/329154/ssh の文字化けが vim-nano-on-remote-server で発生する