Книга: The Linux Command Line
Назад: 11. The Environment
Дальше: III. Common Tasks and Essential Tools

. is a partial list of the characters that the shell treats specially in the prompt string. and see if you can come up with a brilliant new prompt.

, the \[ and \] sequences are used to encapsulate non-printing characters. An ANSI escape code begins with an octal 033 (the code generated by the esc key), followed by an optional character attribute, followed by an instruction. For example, the code to set the text color to normal (attribute = 0) black text is \033[0;30m. lists available text colors. Notice that the colors are divided into two groups, differentiated by the application of the bold character attribute (1), which creates the appearance of “light” colors.

. The background colors do not support the bold attribute.

lists the escape codes that position the cursor.

© RuTLib.com 2015-2018