1、隐藏光标
echo -e "\033[?25l"
2、显示光标
echo -e "\033[?25h"
来源:https://blog.csdn.net/weixin_43336281/article/details/99109789