How to make an animated bash shell prompt for the terminal?

前端 未结 2 1240
我寻月下人不归
我寻月下人不归 2021-01-14 08:31

I want to make an animated curser prompt in the terminal(Ubuntu 14.04),
so i make this script:

while [ : ]
do
    echo -ne \'|\\r\'
    sleep 0.3
    echo -         


        
2条回答
  •  深忆病人
    2021-01-14 08:48

    echo -ne '一\r'
    #         ^
    #         |
    #         \--- problem
    

    This character should be a hyphen, but is actually something called CJK Ideograph, First

提交回复
热议问题