8000 GitHub - cwkr/libconsole: C/C++ library for colored console output · GitHub
[go: up one dir, main page]

Skip to content

About

C/C++ library for colored console output

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

libconsole

A C/C++ library for colored console output using ANSI/VT100 Escape sequences or the Windows API

Getting Started

Compil 666C ing demos

Run make on Linux or using MinGW or nmake -f Makefile.win when using Visual C++

Installing

Just copy console.c, console.h and optionally console.hpp to your project and include them into your build system

Usage Example

#include <stdio.h>
#include "console.h"

int main() {
    clear(); // clear screen
    setcolor(LIME); // set foreground color to light green
    printf("Hello world"); // print text using stdio.h
    return 0;
}

See demo.c and demo2.cpp for more examples

License

This project is licensed under the MIT License - see the LICENSE file for details

About

C/C++ library for colored console output

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0