console: Use escape sequence instead of reset_term()

This commit is contained in:
czapek1337 2022-01-29 07:52:44 +01:00
parent 077341d102
commit 77ed9d23ca
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ void console(void) {
} else if (strcmp(prompt, "exit") == 0) {
break;
} else if (strcmp(prompt, "clear") == 0) {
reset_term();
print("\e[2J\e[H");
} else if (strcmp(prompt, "editor") == 0) {
char *new_entry = config_entry_editor("New Entry", "");
if (new_entry != NULL) {