mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-27 13:44:01 +00:00
Stage 28
This commit is contained in:
@@ -246,13 +246,14 @@ void ush_writeln(const char *text) {
|
||||
|
||||
void ush_prompt(const ush_state *sh) {
|
||||
if (sh == (const ush_state *)0) {
|
||||
ush_write("cleonos(user)> ");
|
||||
ush_write("\x1B[96mcleonos\x1B[0m(\x1B[92muser\x1B[0m)> ");
|
||||
return;
|
||||
}
|
||||
|
||||
ush_write("cleonos(user:");
|
||||
ush_write("\x1B[96mcleonos\x1B[0m(\x1B[92muser\x1B[0m:");
|
||||
ush_write("\x1B[93m");
|
||||
ush_write(sh->cwd);
|
||||
ush_write(")> ");
|
||||
ush_write("\x1B[0m)> ");
|
||||
}
|
||||
|
||||
void ush_write_hex_u64(u64 value) {
|
||||
@@ -272,4 +273,4 @@ void ush_print_kv_hex(const char *label, u64 value) {
|
||||
ush_write(": ");
|
||||
ush_write_hex_u64(value);
|
||||
ush_write_char('\n');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user