Single-header library for adding barcharts in your ncurses terminal application. Uses C++11 and compiled latest on MacOS. Requires unicode support.
To use, you must:
- Copy the header file to your directory.
- Include it at the top of your file, with an additional library:
#include "barchart.h"
#include <locale.h>
- Before any call to ncurses, include the following line in your code:
setlocale(LC_ALL, "");
This repository contains an additional example.cpp
and Makefile
to make it easier to understand.
Assuming you have g++
installed, simply call:
make
in your local repo.