I'm having some problems using WSL.
If I run WSL as a normal user, the terminal will occasionally start to type by itself. Because of this, using WSL where any input is required (e.g. vi/vim, nano, etc.) is impossible.
Several examples:
I'm trying to change my password and then, some
^@^@^@^@
is typed on its own:gabriel@PC:~$ passwd Changing password for gabriel. Current password: ^@^@^@^@passwd: Authentication token manipulation error passwd: password unchanged gabriel@PC:~$
When using vi/vim, it quits the insertion mode or types on screen.
When using nano, it only type some newlines (i.e.
\n
).
If I start WSL as Admin, none of these problems occur.
Does anyone know why this is happening?
^@
symbol itself is a null character, so it probably doesn't show up anywhere else. I found a similar issue with WSL>powershell in windows terminal. It looks like the cause in that case is WSL doing some things in UTF16 that the terminal doesn't like. You could have some input encoding issue on your default user's profile (but not the admin)? github.com/microsoft/WSL/issues/6787 (and linked issues)