Small terminal manipulation library for D Programming Language.
First you need to build build.d
program, with following command.
dmd build.d
Then you can build termlib examples with following command
build.exe build-examples
And finally run with
.\examples\filled_buffer.exe
import termlib;
import std.stdio;
void main() {
CharBuffer buffer = new CharBuffer();
buffer.setSize(25,15);
buffer.fill('#');
buffer.writeCentered("Hello World");
write(buffer.getAsString());
}
To compile: build.exe build hello_world.d
For more examples please see examples directory
Check learn directory for learning termlib.