Console Colors
Console color tools here!
In addition to all of the Terminaux's features, we also provide you with a rich class for console color tools. Here are the supported properties and functions that you can use in your console applications:
Setting the console color
Setting the console color dryly
...and more
Current colors
The console tools class provides you with two properties that allow you to get the current foreground and the background color.
Color setting
The console tools class provides you with two functions that set the console foreground and background colors both dryly and permanently.
The first function sets either the console's foreground color or the console's background color permanently. The changes will be done and you can verify this using either CurrentForegroundColor
or CurrentBackgroundColor
.
The second function, however, only runs dryly and doesn't set any of the abovementioned properties. This allows you to temporarily set the background or the foreground color.
Background loading
The console color tools class also provides you with background loading functions that allow you to quickly clear the console with the selected background color.
The non-dry LoadBack()
functions allow you to load the background color and permanently set the console background color to either the already-set current background color or to your specified background color. However, the dry version allows you to load the background color temporarily.
Sequence Initialization
If you have a Windows system, you can call a function that allows you to initialize the VT sequences. This function in the ConsoleExtensions
class is called InitializeSequences()
.