MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / promptstr

Function promptstr

src/user/shell.rs:185–201  ·  view source on GitHub ↗

Prompt string function

(success: bool)

Source from the content-addressed store, hash-verified

183
184// Prompt string function
185pub fn promptstr(success: bool) -> String
186{
187 let csicol = Style::color("Magenta");
188 let csierr = Style::color("Red");
189 let csires = Style::reset();
190
191 format!("{}LOS:{} ", if success
192 {
193 csicol
194 }
195 else
196 {
197 csierr
198 },
199
200 csires)
201}
202
203
204// Run

Callers 2

kernel_mainFunction · 0.85
runFunction · 0.85

Calls 1

colorFunction · 0.50

Tested by

no test coverage detected