part: Require keypresses between entry displays in list_volumes()
diff --git a/common/lib/part.c b/common/lib/part.c
index 15d33937..23f77b9b 100644
--- a/common/lib/part.c
+++ b/common/lib/part.c
@@ -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();
+ }
}
}
