prim/source/style/package.d

10 lines
194 B
D

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