Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 827 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 827 Bytes

libconsole

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

Getting Started

Compiling 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