
Tengo problemas de visualización cada vez que edito archivos con nano en el subsistema Linux de Windows 10.
Me conectaré a un sistema remoto (VM CentOS7 local en Virtualbox) usando Bash/SSH. Luego, procederé a editar archivos en dicho sistema remoto usando nano.
Abro un archivo, empiezo a eliminar texto y, de repente, líneas enteras de texto empiezan a desaparecer. Tengo que cerrar y reiniciar mi trabajo. Cuando me canse, simplemente cambiaré a vim. Prefiero estar en nano, que funciona bien para las cosas básicas que hago.
¿Alguien más está viendo esto?
Edición #1
- Simplemente navegar por el documento en nano puede causar este problema
- vim y Putty no se comportan de la misma manera
- Ctrl+Shift + 6 no soluciona el problema
- Utilizando esencialmente una instalación básica de CentOS7, sin modificaciones en el shell
- AFAIK, este problema no parece ocurrir cuando accedo a mi servidor VPS Ubuntu
Respuesta1
Esto se debe a una terminfo remota incompatible. Podrías probar esta solución:
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.`
Más información aquí:https://github.com/Microsoft/WSL/issues/1436
Este es un problema similar. Puede consultar esto si no puede solucionar el problema:https://serverfault.com/questions/329154/ssh-garbling-characters-in-vim-nano-on-remote-server