[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
The cursor moves abnormally
From: |
cheng wensui |
Subject: |
The cursor moves abnormally |
Date: |
Sun, 27 Jun 2021 12:19:00 +0000 |
bash 5.1.4(1)-release (x86_64-pc-linux-gnu)
when ps1 is too long ,The cursor moves abnormally ,Entering letters too many
too long is also abnormal
example :
PS1='\033[5;37m[\033[0m\u\033[1;35m@\033[0m\033[4m\H\033[0m\033[1;31m(\t)\033[0m\W
\033[0;33m\#/\!\033[0m\033[5;37m]\033[0m\033[0;37m\$ '
This wrong command "dpkg -L - bb -cc genisoimage | grep boot.cat" , Try to
modify it , Use these keys "backspace" "space" "←↑→↓"
You will findings the cursor moves is abnormal , the language description is a
bit difficult ,
and It is not normal to input too many letters that are too long
qterminal ,tilix ,xterm ,3 softwares are like this .
but PS1='[\u@\H(\t)\W \#/\!]\$ ' is OK
- The cursor moves abnormally,
cheng wensui <=