[ Prev ] [ Index ] [ Next ]

Color

Created Mittwoch 19 Februar 2020


To use ANSI escape sequences (use non-printable characters) in the prompt they have to be enclosed by \[ and \].
E.g. \[\033[01;32m\]


Color codes:
30: Black
31: Red
32: Green
33: Yellow
34: Blue
35: Purple
36: Cyan
37: White


Style:


0: Normal text
1: Bold or light, depending on terminal
4: Underline text