Compare commits

...

7 Commits

3 changed files with 21 additions and 2 deletions

View File

@ -1,4 +1,4 @@
LDLIBS := -lscterm -lm -lscscreensaver
LDLIBS := -lscterm -lm -lsccolor
BIN := $(shell basename $$(pwd))

19
README.md Normal file
View File

@ -0,0 +1,19 @@
# progress — Demo tool for the libscterm library
Simple tool, meant to be built and run (not installed).
OBSOLETE: has been moved into tests for libscterm, and can be invoked using
`make test` there.
## Build
`make`
after installing dependencies:
- [libscterm](https://git.bobpolis.com/bob/libscterm/)
- [libsccolor](https://git.bobpolis.com/bob/libsccolor/)
## Run
`./progress`

View File

@ -2,7 +2,7 @@
#include <ctime>
#include <cstdlib>
#include <libscterm.hpp>
#include <libscscreensaver.hpp>
#include <libsccolor.hpp>
void show_rows_cols(const sc::term& t) {
std::cout << t.rows() << " rows, " << t.cols() << " cols\n";