The following is the commonly used ANSI control code found. However, I have never succeeded in saving the control code and restoring the cursor position. I first use/033 [s to save the current cursor position, and then use/033 [X; YH to set the cursor position, and finally restore the cursor position/033 [U, however, the original location cannot be recovered. Do not understand.
BBS supports the ANSI/3.64 c
, _ FUNCTION __, _ line __); Return 0; } The color is divided into the background color and font color, 30 ~ 39 is used to set the font color, 40 ~ 49. Set the background: Background Color font color 40: Black 30: Black 41:
This is a creation in
Article, where the information may have evolved or changed.
This bee upgrade to the 1.5 version, in the execution of bee version will be output a color Bee logo, many people feel very magical, in fact, this is the ANSI color code.
In fact, in Linux, we write C language easily can achieve this effect.
The specific writing format is as follo
PHP functions convert 16 color codes to RGB color values
Use the PHP function to convert 16 forbidden color codes to RGB color values.
/** * Function 16 binary color converted to RGB
Examples of interlaced color codes implemented by jquery:Interlaced color effect in a large number of Web applications, especially tables or news lists and other structures, can effectively enhance the site's identification, more humane, the following through a simple example of its implementation principle, as to its aesthetics here is not fastidious, code examp
Red: #ff0000或 #f00Different notation and units of valuesIn addition to the English word red, we can also use the hexadecimal color value #ff0000:#ff0000; }To save bytes, we can use the abbreviated form of CSS:#f00; }We can also use RGB values in two ways:#ff0000rgb(100%,0%,0%); }Note that when RGB percentages are used, the percent sign is written even if the value is 0 o'clock. But in other cases it is not necessary to do so. For example, when the siz
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.