I'm using Windows 10 with WSL2. In all the terminals I have tried so far, I quickly encounter a broken command line. After pressing ENTER, the actual command appears differently, parts of the command prompt are deleted, editing does not occur at the cursor position, and random spaces are added, among other issues. Today has been particularly challenging, making it difficult for me to work effectively.
Maybe it happens after scrolling the history with the up/down arrow keys.
Restarting WSL, clearing terminal, restarting terminal don't help.
So after restarting I scroll the history and boom!
Any idea how to fix it? I read there's some RESET command for terminal. How to reset? Maybe that could help...
Here just one example: after executing git log...
I return back to the command with the arrow up key but the end of the command prompt is partially destroyed as well as the beginning of the command.
[16:25:20] blade@DESKTOP-VQABTK7:/bytex/site$ echo $PS1; echo;
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
$PS1
in POSIX-compatible shells)?