From 11f50a6aaa6b5998be71406954265ed42d48ad88 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Sun, 9 Jul 2023 03:37:55 +0200 Subject: [PATCH] part: Require keypresses between entry displays in list_volumes() --- common/lib/part.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 #include #include +#include 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(); + } } }