aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux/cli.c
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2011-03-15 20:28:26 +0000
committerMatt Fleming <matt.fleming@linux.intel.com>2011-03-15 21:14:48 +0000
commit21859f75289aa2f28c8c6ddfbfea481bac631ecd (patch)
treeccaf80abd6287eaf1484b94bf6bc65e6548135a3 /com32/elflink/ldlinux/cli.c
parent97e12159159b793292d1f5708aab6c32f06edce4 (diff)
downloadsyslinux-21859f75289aa2f28c8c6ddfbfea481bac631ecd.tar.gz
syslinux-21859f75289aa2f28c8c6ddfbfea481bac631ecd.tar.xz
syslinux-21859f75289aa2f28c8c6ddfbfea481bac631ecd.zip
elflink: Do clear screen even if we have no pDraw_Menu method
Do clear screen even if we have no pDraw_Menu method, since user may work in CLI mode and want to clear screen by pressing 'Ctrl-L'. Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com> Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
Diffstat (limited to 'com32/elflink/ldlinux/cli.c')
-rw-r--r--com32/elflink/ldlinux/cli.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/com32/elflink/ldlinux/cli.c b/com32/elflink/ldlinux/cli.c
index b35e958b..7a68545e 100644
--- a/com32/elflink/ldlinux/cli.c
+++ b/com32/elflink/ldlinux/cli.c
@@ -98,14 +98,13 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
x = y = 0;
while (!done) {
- if (redraw > 1 && pDraw_Menu != NULL) {
+ if (redraw > 1) {
/* Clear and redraw whole screen */
/* Enable ASCII on G0 and DEC VT on G1; do it in this order
to avoid confusing the Linux console */
- /* clear_screen();
- draw_menu(-1, top, 1); */
clear_screen();
- (*pDraw_Menu) (-1, top, 1);
+ if (pDraw_Menu)
+ (*pDraw_Menu) (-1, top, 1);
prev_len = 0;
// printf("\033[0m\033[2J\033[H");
}