Skip to content

kerem3338/termlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Termlib

Small terminal manipulation library for D Programming Language.

Getting Started

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

Example Usage

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

Learning

Check learn directory for learning termlib.

About

Terminal manipulation library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages