Skip to content

killcerr/color-detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

usage

bool is_support_ansi_color(FILE *file);

file:

must be a valid C file or NULL

Return Value:

if the file handle support ansi color, this function will return true.

example

#include "color-detect.h"
int main()
{
        printf("%d",is_support_ansi_color(stdout));
}

About

detect output handle's ansi color support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages