This library can be used to create application with console UI. It supports:
- colors
- text positioning
- keyboard events handling
Implementation uses:
conio.h
andwincon.h
on Windowsncurses.h
on Unix-based OS
Just copy console.h
and console.c
to your project and use them:
#include "console.h"
That's all for Windows.
On Unix-based OS you should also have ncurses library installed.
For example, use apt-get on Linux:
apt-get install libncurses5-dev
Or use your favourite package manager on your favourite OS.
After this add -lncurses
to gcc options of your project.
There is an example.c
which can be useful to understand using of this
library.
To build and run on Windows just compile all files together.
On Unix-based OS it's easy too:
make && ./example
This library was inspired by Alexey Nikitin and developed together with Ivan Novikov aka NIA.
Any feedback is welcome! Open pull request or email to vladimir.parfinenko@gmail.com.
Copyright © 2013 Vladimir Parfinenko, released under the MIT license.