Echo use

xiaoxiao2021-03-06  80

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 3rd line, some of the following: / 33 [ 0m close 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 outlast color / 33 [40M - / 33 [47M setting background color / 33 [NB cursor upon 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 Restore Cursor Location / 33 [? 25L Hide Cursor / 33 [? 25h Show Cursor For example, output strings to the specified location of the standard display:

Code: r = # Specify line C = # specified columns Echo -e "/ 033 [$ {r}; $ {c} h here", such as hiding cursor:

Code: echo -ne "/ 033 [? 25L"

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

New Post(0)