From: Kevin Townsend Date: Wed, 9 May 2012 21:42:18 +0000 (+0200) Subject: Added basic ANSI codes X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/commitdiff_plain/1c66f1dc6d3dc43e39760c505ac5d08a9f8aeda4?ds=inline Added basic ANSI codes --- 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"