diff options
Diffstat (limited to 'lib/aec/aec.c')
| -rw-r--r-- | lib/aec/aec.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/aec/aec.c b/lib/aec/aec.c new file mode 100644 index 0000000..d38e8d1 --- /dev/null +++ b/lib/aec/aec.c @@ -0,0 +1,24 @@ +#include "aec.h" + +#include "../io/io.h" + +#define csi() wstd("\033["); + +void sgr(const char *attrs) +{ + csi(); + wstd(attrs); + wstd("m"); +} + + +#ifdef AEC_UNIT_TEST + +int main() { + sgr(SGR_BOLD); + wstd("Hallo"); + sgr(SGR_RESET); + wstd("Welt\n"); +} + +#endif |