Compare commits
5 Commits
d494f8d822
...
main
Author | SHA1 | Date | |
---|---|---|---|
9a5f5e6a44 | |||
929a66b4df | |||
4acce6d32d | |||
f1a4ef5da3 | |||
49a4a07f64 |
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
|||||||
LDLIBS := -lscterm -lm -lscscreensaver
|
LDLIBS := -lscterm -lm -lsccolor
|
||||||
|
|
||||||
BIN := $(shell basename $$(pwd))
|
BIN := $(shell basename $$(pwd))
|
||||||
|
|
||||||
|
@ -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`
|
||||||
|
|
||||||
|
@ -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