Termial tips
简介
各种不同的Terminal会有很多特殊的控制字符,用来控制界面,响铃等功能,详细可以参考一下man page.
https://man7.org/linux/man-pages/man4/console_codes.4.html
光标控制
These are not described in ECMA-48. We list the Set Modesequences; the Reset Mode sequences are obtained by replacing thefinal 'h' by 'l'.ESC [ ? 25 hDECTECM (default on): Make cursor visible.
显示光标
echo -e "\033[?25h"隐藏光标
echo -e "\033[?25l"