2023-08-09 20:01:15 +00:00
|
|
|
module style;
|
|
|
|
|
|
|
|
import std.conv;
|
|
|
|
|
|
|
|
import style.color;
|
|
|
|
|
|
|
|
string set(string s, int code) {
|
2023-08-09 20:33:14 +00:00
|
|
|
return ("%{\x1b[" ~ to!string(code) ~ "m%}") ~ s ~ ("%{\x1b[" ~ to!string((Color.reset + 0)) ~ "m%}");
|
2023-08-09 20:01:15 +00:00
|
|
|
}
|