A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/mattn/ansicolor-w32.c below:

GitHub - mattn/ansicolor-w32.c

ansicolor-w32.c

ANSI color support on windows

Usage

You can display ANSI color on windows without hacks

#include <stdio.h>
#ifdef _WIN32
# include "ansicolor-w32.h"
#endif

int
main(int argc, char* argv[]) {
  printf("\x1b[2J\x1b[1;1H\x1b[40mhello"); 
  return 0;
}

The library replaces the printf family functions with wrappers that recognize the ANSI escape code and render the input using the specified colors.

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4