started implementation for coloured outupt
This commit is contained in:
1 parent
1149db2312
commit
fe4b863d19
2 files changed
+113
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#include <stdio.h>
|
||||
#include "format.h"
|
||||
|
||||
void format_reset( void )
|
||||
{
|
||||
printf( "%s0%s", SEQUENCE_PREFIX, SEQUENCE_SUFFIX );
|
||||
}
|
||||
|
||||
void format_set_style( unsigned char style )
|
||||
{
|
||||
if ( COLOUR_FG.extended == style ) return;
|
||||
if ( COLOUR_BG.extended == style ) return;
|
||||
|
||||
printf( "%s%d%s", SEQUENCE_PREFIX, style, SEQUENCE_SUFFIX );
|
||||
}
|
||||
|
||||
// void format_reset_style( unsigned char style )
|
||||
// {
|
||||
// }
|
||||
Reference in new issue
Block a user