![]() ![]() ![]() The ESC character in ASCII is value 27, which in octal is 33, and in hexadecimal, is 1b. The TL DR is that you can use octal form like \nnn, or hexadecimal form like \xn. You can see for info about string escapes in C++. The tricky part is really just getting the escape character in a C++ string literal. This means that xterm-color.el can correctly handle sequences that span input batches while also being faster than ansi-color.el.Colorization ANSI escape codes use Select Graphic Rendition (SGR) sequences, which are of the form CSI n m, where a CSI (which stands for Control Sequence Introducer) sequence is just the escape character followed by an opening square brace, n is some parameter, and m is the literal "m" character. It implements a state machine to handle ANSI SGR sequences rather than using regular expressions like ansi-color.el. ![]() It supports the standard ANSI color protocol plus XTERM 256 colors. It can also be used standalone in your own modes. Xterm-color.el is an alternative to ansi-color.el for both comint and eshell.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |