This commit is contained in:
2026-04-13 22:37:39 +08:00
parent f9e0190abe
commit d1d514c16a
13 changed files with 514 additions and 58 deletions

View File

@@ -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');
}
}