aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-03-19 12:08:34 +0100
committerErwan Velu <erwan.velu@free.fr>2009-03-19 12:08:34 +0100
commit4e9546fba4d66a012ab40353a8706fbc659a37f5 (patch)
tree86d857167e8950b58ec46decce04452c01b2db71 /com32/hdt
parent1d07797ed789c35429fd7702180e86be506069b3 (diff)
downloadsyslinux.git-4e9546fba4d66a012ab40353a8706fbc659a37f5.tar.gz
syslinux.git-4e9546fba4d66a012ab40353a8706fbc659a37f5.tar.xz
syslinux.git-4e9546fba4d66a012ab40353a8706fbc659a37f5.zip
hdt: more_printf must use getkey
Impact: Users can now press a key to continue Since we switch to an ansi raw console, the fgets() used to catch the return when we display to much lines didn't worked. We now use the getkey function to grab __any__ key, which is better then.
Diffstat (limited to 'com32/hdt')
-rw-r--r--com32/hdt/hdt-common.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/com32/hdt/hdt-common.h b/com32/hdt/hdt-common.h
index 8cdf6636..8f5da7b1 100644
--- a/com32/hdt/hdt-common.h
+++ b/com32/hdt/hdt-common.h
@@ -46,10 +46,9 @@ extern int display_line_nb;
#define more_printf(...) do {\
if (display_line_nb == 23) {\
- char tempbuf[10];\
- printf("Press enter to continue\n");\
+ printf("Press any key to continue\n");\
display_line_nb=0;\
- fgets(tempbuf, sizeof(tempbuf), stdin);\
+ get_key(stdin, 0);\
}\
printf ( __VA_ARGS__);\
display_line_nb++; \