summaryrefslogtreecommitdiff
path: root/source/style/package.d
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-08-09 16:01:15 -0400
committerShav Kinderlehrer <[email protected]>2023-08-09 16:01:15 -0400
commit85f830ce4730da0489bc14d8726de7fb2dd0fc38 (patch)
tree811707c736ce7098b5655f018219c5093518f0a0 /source/style/package.d
parent24c94e510ab9c016542b287e060c992c195d7987 (diff)
downloadprim-85f830ce4730da0489bc14d8726de7fb2dd0fc38.tar.gz
prim-85f830ce4730da0489bc14d8726de7fb2dd0fc38.zip
Add styles
Diffstat (limited to 'source/style/package.d')
-rw-r--r--source/style/package.d9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/style/package.d b/source/style/package.d
new file mode 100644
index 0000000..76aa044
--- /dev/null
+++ b/source/style/package.d
@@ -0,0 +1,9 @@
+module style;
+
+import std.conv;
+
+import style.color;
+
+string set(string s, int code) {
+ return ("%{\x1b[" ~ to!string(code) ~ "m%}") ~ s ~ ("%{\x1b[0m%}");
+}