Compare commits
7 Commits
1a98d2b09c
...
main
Author | SHA1 | Date | |
---|---|---|---|
9a5f5e6a44 | |||
929a66b4df | |||
4acce6d32d | |||
f1a4ef5da3 | |||
49a4a07f64 | |||
d494f8d822 | |||
b4d55ca721 |
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
|||||||
LDLIBS := -lscterm -lm -lscscreensaver
|
LDLIBS := -lscterm -lm -lsccolor
|
||||||
|
|
||||||
BIN := $(shell basename $$(pwd))
|
BIN := $(shell basename $$(pwd))
|
||||||
|
|
||||||
|
19
README.md
Normal file
19
README.md
Normal 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`
|
@ -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";
|
||||||
|
Reference in New Issue
Block a user