drlutil 1.0.0
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.
- Registered by Danyal Zia
- 1.0.0 released 9 years ago
- danyalzia/drlutil
- Boost License
- Copyright © 2014, Danyal Zia
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.0 2015-Jul-02 ~master 2015-Jul-04 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
118 downloads total
-
- Score:
- 0.6
- Short URL:
- drlutil.dub.pm