mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 13:43:19 +02:00
bruh
This commit is contained in:
parent
9e356289b5
commit
2f0d370c0b
@ -120,16 +120,32 @@ public string setForegroundBackground(string fg, string bg)
|
||||
return control_char.idup~fg~","~bg;
|
||||
}
|
||||
|
||||
// Generates a string that changes the foreground color (except enum)
|
||||
/**
|
||||
* Generates a string that changes the foreground color (except enum)
|
||||
*
|
||||
* Params:
|
||||
* color = the foreground color
|
||||
*
|
||||
* Returns: the control sequence
|
||||
*/
|
||||
pragma(inline)
|
||||
string set_foreground(SimpleColor color)
|
||||
public string setForeground(SimpleColor color)
|
||||
{
|
||||
return ascii_color_code~color;
|
||||
}
|
||||
|
||||
// Generate a string that sets the foreground and background color (except enum)
|
||||
|
||||
/**
|
||||
* Generate a string that sets the foreground and background color (except enum)
|
||||
*
|
||||
* Params:
|
||||
* fg = the foreground color
|
||||
* bg = the background color
|
||||
*
|
||||
* Returns: thecolor control sequence
|
||||
*/
|
||||
pragma(inline)
|
||||
string set_foreground_background(SimpleColor fg, SimpleColor bg)
|
||||
public string setForegroundBackground(SimpleColor fg, SimpleColor bg)
|
||||
{
|
||||
return ascii_color_code~fg~","~bg;
|
||||
}
|
||||
@ -141,7 +157,7 @@ string set_foreground_background(SimpleColor fg, SimpleColor bg)
|
||||
* Returns: The control string
|
||||
*/
|
||||
pragma(inline)
|
||||
string reset_fg_bg()
|
||||
public string resetForegroundBackground()
|
||||
{
|
||||
return [ascii_color_code].idup;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user