ColorConsoleWriter

This writer uses arsd.terminal and it's used if you add this dependency to your project It supports all the features and you should use it if you want to get the best experience from this project

Constructors

this
this()
Undocumented in source.

Members

Functions

goTo
void goTo(int y)

Go up y lines

hideCursor
void hideCursor()

hide the terminal cursor

resetColor
void resetColor()
Undocumented in source. Be warned that the author may not have intended to support it.
setColor
void setColor(Context context)
Undocumented in source. Be warned that the author may not have intended to support it.
setColorReverse
void setColorReverse(Context context)
Undocumented in source. Be warned that the author may not have intended to support it.
showCursor
void showCursor()

show the terminal cursor

width
uint width()

returns the terminal width

write
void write(string text, Context context)

writes a string

writeReverse
void writeReverse(string text, Context context)

writes a string with reversed colors

writeln
void writeln(string text, Context context)

writes a string and go to a new line

Inherited Members

From ReportWriter

Context
enum Context

The information type. Convey meaning through color with a handful of emphasis utility classes.

goTo
void goTo(int )

Go back a few lines

write
void write(string , Context )

Write a string

writeReverse
void writeReverse(string , Context )

Write a string with reversed colors

writeln
void writeln(string , Context )

Write a string and go to a new line

showCursor
void showCursor()

Show the cursor from user

hideCursor
void hideCursor()

Hide the cursor from user

width
uint width()

Get how many characters you can print on a line

Meta