ANSI control code

xiaoxiao2021-03-06  44

Description of the ANSI control code, 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 of the first line. Excerpts some 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 Set the foreground color / 33 [40M - / 33 [47M setting background color / 33 [NA cursor upload N row / 33 [NB cursor minus N row / 33 [NC cursor right shift N row / 33 [ND cursor left shift N rows / 33 [Y; XH Set cursor position / 33 [2J clear screen / 33 [k Clear content from cursor to row "/ 33 [S save cursor position / 33 [U recover cursor position / 33 [? 25L hidden cursor / 33 [? 25h display cursor

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

New Post(0)