VT100 Control Document

xiaoxiao2021-03-06  73

This thing is very fun, you can use these things to show colorful worlds.

Format: echo "/ 033 [word background color; font color M string / 033 [0M"

(If you call in the C program, you can print these controls using the Printf function.)

E.g:

ECHO "/ 033 [41; 36M Something Here / 033 [0M"

(C program statement: Printf ("/ 033 [41; 36M Something Here / 033 [0M");

The position of 41 represents the background, the position of 36 is the color of the representation.

Those ASCII Code is the beginning and end of color call.

/ 033 [; m ... / 033 [0M

Word background color range: 40 ---- 49

40: Black

41: Deep red

42: Green

43: Yellow

44: Blue

45: Purple

46: dark green

47: White

Word color: 30 ----------- 39

30: Black

31: Red

32: Green

33: Yellow

34: Blue

35: Purple

36: dark green

37: White

======================================================= ai control code instruction of

/ 33 [0M Close all properties

/ 33 [1M set high brightness

/ 33 [4M Underline

/ 33 [5M flashing

/ 33 [7M anti-display

/ 33 [8M blanking

/ 33 [30M - / 33 [37M set outrage

/ 33 [40M - / 33 [47M set background color

/ 33 [NA cursor to move N line

/ 33 [NB cursor minus N line

/ 33 [NC cursor right shift N line

/ 33 [ND cursor left shift N line

/ 33 [Y; XH Set the cursor position

/ 33 [2J clear screen

/ 33 [k Clears the content from the cursor to the end

/ 33 [s Save the cursor position

/ 33 [u Recovery Cursor Location

/ 33 [? 25L hidden cursor

/ 33 [? 25h display cursor

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

New Post(0)