Fix default output colors
This commit is contained in:
parent
b4856c563c
commit
6203bc0063
@ -380,6 +380,8 @@ ansi_init(void (*writer)(char), int w, int y, void (*setcolor)(unsigned char, un
|
||||
state.flags = DEFAULT_FLAGS; /* Nothing fancy*/
|
||||
state.width = w;
|
||||
state.height = y;
|
||||
|
||||
ansi_set_color(state.fg, state.bg);
|
||||
}
|
||||
|
||||
void
|
||||
@ -2774,6 +2776,8 @@ int main(int argc, char ** argv) {
|
||||
|
||||
ansi_print("Hello World!\nThis is a test.\n\033[1;32mHello and thank you\n\033[0mDone.\n");
|
||||
|
||||
return 0;
|
||||
|
||||
#if 0
|
||||
cat("/etc/.vim");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user