prim/source/style/package.d
2023-08-09 16:01:15 -04:00

10 lines
159 B
D

module style;
import std.conv;
import style.color;
string set(string s, int code) {
return ("%{\x1b[" ~ to!string(code) ~ "m%}") ~ s ~ ("%{\x1b[0m%}");
}