X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/6dd1b39d6e608899447e56b49e7a12d0071690e7..5337261a68ea89b88624ca6fd7319cadd662e057:/core/cmd/ansi.h?ds=sidebyside diff --git a/core/cmd/ansi.h b/core/cmd/ansi.h index b538c33..623e126 100644 --- a/core/cmd/ansi.h +++ b/core/cmd/ansi.h @@ -41,6 +41,8 @@ // See: http://www.inwap.com/pdp10/ansicode.txt +// Ex: printf("%s%s%s Bold Black Inverted Text %s \r\n", ANSICODES_GRAPHICS_STYLE_BOLD, ANSICODES_GRAPHICS_FORECOLOR_BLACK, ANSICODES_GRAPHICS_STYLE_NEGATIVE, ANSICODES_GRAPHICS_CLEARALL); + #define ANSICODES_GRAPHICS_CLEARALL "\e[0m" #define ANSICODES_GRAPHICS_STYLE_BOLD "\e[1m" #define ANSICODES_GRAPHICS_STYLE_DIM "\e[2m"