From 1c66f1dc6d3dc43e39760c505ac5d08a9f8aeda4 Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Wed, 9 May 2012 23:42:18 +0200 Subject: [PATCH] Added basic ANSI codes --- core/cmd/ansi.h | 2 ++ 1 file changed, 2 insertions(+) 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" -- 2.20.1