drlutil ~master
D port of rlutil.h - A simple utility library for coloring the console
To use this package, run the following command in your project's root directory:
						Manual usage
						
						Put the following dependency into your project's dependences section:
					
drlutil.d - D port of rlutil.h
Details
It is the D port of rlutil.h for changing the console text color, getting keyboard input, etc. It is designed to aid the creation of cross-platform console-mode roguelike games with D programming language.
Installation
Clone the repository:
$ git clone git://github.com/danyalzia/Drlutil
Once cloned, while in the Drlutil directory:
$ dub build
Usage
import std.stdio;
import rlutil.d;
void main() {
    setColor(YELLOW);
    writeln("This is Yellow Text");
 
    setColor(RED);
    writeln("This is Red Text");
 
    setColor(BLUE);
    writeln("This is Blue Text");
 
    setColor(GREEN);
    writeln("This is Green Text");
 
    setColor(WHITE);
    writeln("This is White Text");
 
    setColor(GREEN);
    write("Green, ");
    setColor(RED);
    write("Red, ");
    setColor(BLUE);
    writeln("Blue");
 
    // Change the color back to default grey
    setColor(GREY);
}
License
It is released under Boost license.
- ~master released 10 years ago
- danyalzia/drlutil
- Boost License
- Copyright © 2015, Danyal Zia
- Authors:
- Dependencies:
- none
- Versions:
- 
						
 Show all 2 versions1.0.0 2015-Jul-02 ~master 2015-Jul-04 
- Download Stats:
- 
						- 
								0 downloads today 
- 
								1 downloads this week 
- 
								3 downloads this month 
- 
								123 downloads total 
 
- 
								
- Score:
- 0.6
- Short URL:
- drlutil.dub.pm