part: Require keypresses between entry displays in list_volumes()

This commit is contained in:
mintsuki 2023-07-09 03:37:55 +02:00
parent 79e50a82af
commit 11f50a6aaa
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#include <stddef.h>
#include <lib/part.h>
#include <lib/print.h>
#include <lib/readline.h>
void list_volumes(void) {
for (size_t i = 0; i < volume_index_i; i++) {
@ -13,6 +14,9 @@ void list_volumes(void) {
print("max_partition: %d\n", v->max_partition);
print("first_sect: %U\n", v->first_sect);
print("sect_count: %U\n", v->sect_count);
print("---\n");
if (i < volume_index_i - 1) {
print("--- Press a key to continue ---\n");
getchar();
}
}
}