part: Require keypresses between entry displays in list_volumes()
This commit is contained in:
parent
79e50a82af
commit
11f50a6aaa
@ -1,6 +1,7 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <lib/part.h>
|
#include <lib/part.h>
|
||||||
#include <lib/print.h>
|
#include <lib/print.h>
|
||||||
|
#include <lib/readline.h>
|
||||||
|
|
||||||
void list_volumes(void) {
|
void list_volumes(void) {
|
||||||
for (size_t i = 0; i < volume_index_i; i++) {
|
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("max_partition: %d\n", v->max_partition);
|
||||||
print("first_sect: %U\n", v->first_sect);
|
print("first_sect: %U\n", v->first_sect);
|
||||||
print("sect_count: %U\n", v->sect_count);
|
print("sect_count: %U\n", v->sect_count);
|
||||||
print("---\n");
|
if (i < volume_index_i - 1) {
|
||||||
|
print("--- Press a key to continue ---\n");
|
||||||
|
getchar();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user