fabd.dfab

D wrappers for the C functions

Members

Functions

apply_color
string apply_color(String text, Color c)

Applies the color c to text.

background_256
string background_256(String text, rgb_t c)

Applies the c to the background of text

foreground_256
string foreground_256(String text, rgb_t c)

Applies the c to the foreground of text

highlight_256
string highlight_256(String text, rgb_t c)

Highlights text with the color c

rgb
auto rgb(ubyte r, ubyte g, ubyte b)

Create an rgb_t

xterm_to_rgb
rgb_t xterm_to_rgb(int xcolor)

Converts an xterm color number into an RGB value

Structs

Image
struct Image

Stores converted image data

Meta

Authors

Matthew Soucy, msoucy@csh.rit.edu

License

Subject to the terms of the MIT license, as written in the included LICENSE file.