Termial tips

Table of Contents

简介

各种不同的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 Mode
sequences; the Reset Mode sequences are obtained by replacing the
final 'h' by 'l'.
ESC [ ? 25 h
      DECTECM (default on): Make cursor visible.
  • 显示光标

    echo -e "\033[?25h"
    
  • 隐藏光标

    echo -e "\033[?25l"
    
Contact me via :)
虚怀乃若谷,水深则流缓。