Compare commits

...

5 Commits

3 changed files with 6 additions and 4 deletions

View File

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

View File

@ -2,6 +2,9 @@
Simple tool, meant to be built and run (not installed). 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 ## Build
`make` `make`
@ -9,9 +12,8 @@ Simple tool, meant to be built and run (not installed).
after installing dependencies: after installing dependencies:
- [libscterm](https://git.bobpolis.com/bob/libscterm/) - [libscterm](https://git.bobpolis.com/bob/libscterm/)
- [libscgui](https://git.bobpolis.com/bob/libscgui/) NOT YET AVAILABLE - [libsccolor](https://git.bobpolis.com/bob/libsccolor/)
## Run ## Run
`./progress` `./progress`

View File

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