When I type a long command on a command-line interface. Something strange may happen in the layout. The characters I typed don't show in lines correctly. Instead, they merge into 1 line or overwrite each other. And the cursor isn't displayed in its right place. For example:
I want to type:
/home/user/example/a/b/c>$ tar --create --file example.tar e
xample
But it shows:
xampleuser/example/a/b/c>$ tar --create --file example.tar e
As shown above, the second line overwrite the first line.
This problem happens in Linux on different computers. I've met similiar problems both in tty and GUI terminal emulator.
It's only a problem in the display, because what I type is exactly what I enter, although it may not be what is shown.
I use American keyboard. The encoding and keymap settings are all the default ones. The keyboard is fine.
More details:
- font: terminus-132n(tty), terminus 24pt(GUI terminal emulator)
- OS: Linux 5.18.15-arch1-1
$LANG
: en_US.UTF-8