summaryrefslogtreecommitdiff
path: root/source/prompt/rps1.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/prompt/rps1.d
parent24c94e510ab9c016542b287e060c992c195d7987 (diff)
downloadprim-85f830ce4730da0489bc14d8726de7fb2dd0fc38.tar.gz
prim-85f830ce4730da0489bc14d8726de7fb2dd0fc38.zip
Add styles
Diffstat (limited to 'source/prompt/rps1.d')
-rw-r--r--source/prompt/rps1.d19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/prompt/rps1.d b/source/prompt/rps1.d
new file mode 100644
index 0000000..5ee5d2c
--- /dev/null
+++ b/source/prompt/rps1.d
@@ -0,0 +1,19 @@
+module prompt.rps1;
+
+import std.conv;
+
+import prim.opt;
+
+import style;
+import style.color;
+import style.font;
+
+string rps1(Opts opt) {
+ string ps;
+
+ // previous command status
+ ps ~= ("(" ~ to!string(opt.status) ~ ") ").set(Color.black);
+
+ return ps;
+}
+