linux命令行光标不显示

1.执行命令

#光标隐藏-终端命令
echo -e "\033[?25l"
#光标显示-终端命令
echo -e "\033[?25h"

2.永久执行

vim /etc/profile

添加到最后一行

echo -e "\033[?25h"

 

source /etc/profile

posted @ 2024-04-17 10:08  Leonardo-li  阅读(118)  评论(0编辑  收藏  举报