aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli.c
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-11-26 00:01:12 +0100
committerErwan Velu <erwan.velu@free.fr>2009-12-04 10:11:13 +0100
commitfe290baf3c7c294e3fa200279169b44791a34b45 (patch)
tree95c8789ec142033e4c6ec55fd0ec25c57ff0c3c5 /com32/hdt/hdt-cli.c
parent8b47fc5e8b29ba2b481deb55ac2756ee088b4b2a (diff)
downloadsyslinux-fe290baf3c7c294e3fa200279169b44791a34b45.tar.gz
syslinux-fe290baf3c7c294e3fa200279169b44791a34b45.tar.xz
syslinux-fe290baf3c7c294e3fa200279169b44791a34b45.zip
hdt: print_history have to use more_printf
Impact: managing scrolling in history() History can generates some scrolling, so let's use more_printf
Diffstat (limited to 'com32/hdt/hdt-cli.c')
-rw-r--r--com32/hdt/hdt-cli.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index f2acb293..dc0bdffa 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -781,14 +781,15 @@ void start_auto_mode(struct s_hardware *hardware)
void print_history()
{
+ reset_more_printf();
for (int i = 1; i < MAX_HISTORY_SIZE - 1; i++) {
if (i == hdt_cli.history_pos) {
- printf("*%d:'%s'\n", i, hdt_cli.history[i]);
+ more_printf("*%d:'%s'\n", i, hdt_cli.history[i]);
continue;
}
if (strlen(hdt_cli.history[i]) == 0)
continue;
- printf(" %d:'%s'\n", i, hdt_cli.history[i]);
+ more_printf(" %d:'%s'\n", i, hdt_cli.history[i]);
}
}