20 lines
258 B
D
20 lines
258 B
D
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;
|
|
}
|
|
|