console: Add a clear command
This commit is contained in:
parent
8bf716696c
commit
eb0dfb155e
@ -13,6 +13,7 @@ static void console_help(void) {
|
|||||||
print(
|
print(
|
||||||
"Available commands:\n"
|
"Available commands:\n"
|
||||||
"exit -- Exit Limine console.\n"
|
"exit -- Exit Limine console.\n"
|
||||||
|
"clear -- Clears the console.\n"
|
||||||
"editor -- Open an empty boot entry editor.\n"
|
"editor -- Open an empty boot entry editor.\n"
|
||||||
"version -- Print version.\n"
|
"version -- Print version.\n"
|
||||||
"copyright -- Print copyright.\n"
|
"copyright -- Print copyright.\n"
|
||||||
@ -33,6 +34,8 @@ void console(void) {
|
|||||||
console_help();
|
console_help();
|
||||||
} else if (strcmp(prompt, "exit") == 0) {
|
} else if (strcmp(prompt, "exit") == 0) {
|
||||||
break;
|
break;
|
||||||
|
} else if (strcmp(prompt, "clear") == 0) {
|
||||||
|
reset_term();
|
||||||
} else if (strcmp(prompt, "editor") == 0) {
|
} else if (strcmp(prompt, "editor") == 0) {
|
||||||
char *new_entry = config_entry_editor("New Entry", "");
|
char *new_entry = config_entry_editor("New Entry", "");
|
||||||
if (new_entry != NULL) {
|
if (new_entry != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user