Description of the ANSI control code

xiaoxiao2021-03-06  14

For example, echo -ne "/ 33 [32m" can change the display color of the character to green echo -ne "/ 33 [3; 1h" to move the cursor to the first column of the third line

Specifically, as follows: / 33 [0m Turn off all attributes / 33 [1M Set high brightness / 33 [4M underline / 33 [5M flash / 33 [7M anti-display / 33 [8M blanking / 33 [30m - / 33 [37M setup Prospect / 33 [40M - / 33 [47M set background color / 33 [NA cursor upon moving N row / 33 [NB cursor minus N row / 33 [NC cursor right shift N row / 33 [ND cursor left shift n Row / 33 [Y; XH Setting Cursor Location / 33 [2J Clear Screen / 33 [K Clear content from the cursor to the end of the row / 33 [S Save Cursor Location / 33 [U Recovery Cursor Location / 33 [? 25L Hide Cursor / 33 [? 25h display cursor

转载请注明原文地址:https://www.9cbs.com/read-50317.html

New Post(0)