^[[0m - Reset the terminal characteristics ^[[1m - emphasis (bold) ^[[30m - Foreground black ^[[31m - Foreground red ^[[32m - Foreground green ^[[33m - Foreground yellow ^[[34m - Foreground blue ^[[35m - Foreground magenta ^[[36m - Foreground cyan ^[[37m - Foreground white ^[[40m - Background black ^[[41m - Background red ^[[42m - Background green ^[[43m - Background yellow ^[[44m - Background blue ^[[45m - Background magenta ^[[46m - Background cyan ^[[47m - Background white
The ^[ can be achieved by pressing CTRL-ESC then ESC. Do note that CTRL-ESC then ESC is not the same as directly typing ^[
The steps are as followed
- CTRL-ESC then ESC and type "[31m" (without the quotation)
- The Message you wish to convey
- Terminating the with CTRL-ESC then ESC and type "[[0m"
^[[31m #########Hello I'm foreground red############ ^[[0m
No comments:
Post a Comment