started implementing a configuration
This commit is contained in:
1 parent
38130ab1d9
commit
8ed2407463
5 files changed
+42
-13
No files matched your search
+5
-5
@@ -7,12 +7,11 @@
|
||||
#ifndef __FORMAT_H
|
||||
#define __FORMAT_H
|
||||
|
||||
#include "stdint.h"
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
/* -- defines */
|
||||
#define NUMBER_STYLES ( ( int )8 )
|
||||
#define NUMBER_COLOURS ( ( int )9 )
|
||||
#define ESCAPE "\x1b"
|
||||
#define SEQUENCE_PREFIX ESCAPE"["
|
||||
#define SEQUENCE_SUFFIX "m"
|
||||
@@ -26,7 +25,8 @@ typedef enum {
|
||||
style_blinking,
|
||||
style_reversed,
|
||||
style_invisible,
|
||||
style_strikethrough
|
||||
style_strikethrough,
|
||||
style_end = NUMBER_STYLES
|
||||
} style_t;
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ extern const uint8_t STYLE_RESET[ NUMBER_STYLES ];
|
||||
|
||||
/* -- function prototypes */
|
||||
void format_clear( void );
|
||||
void format_set_style( style_t* styles, uint8_t number_styles );
|
||||
void format_reset_style( style_t* styles, uint8_t number_styles );
|
||||
void format_set_style( const style_t* const styles, uint8_t number_styles );
|
||||
void format_reset_style( const style_t* const styles, uint8_t number_styles );
|
||||
void format_set_fg_colour( uint32_t colour );
|
||||
void format_set_bg_colour( uint32_t colour );
|
||||
void format_clear_fg_colour( void );
|
||||
|
||||
Reference in new issue
Block a user