Quicker timeout clear syslinux-3.11
authorhpa <hpa>
Tue, 30 Aug 2005 22:56:46 +0000 (22:56 +0000)
committerhpa <hpa>
Tue, 30 Aug 2005 22:56:46 +0000 (22:56 +0000)
com32/modules/menu.c

index eee81f5..9f34061 100644 (file)
@@ -614,7 +614,8 @@ run_menu(void)
 
     if ( key != KEY_NONE ) {
       timeout_left = key_timeout;
-      clear = to_clear;
+      if ( to_clear )
+       printf("\033[%d;1H%s\033[K", TIMEOUT_ROW, menu_attrib->screen);
     }
 
     switch ( key ) {
@@ -712,11 +713,6 @@ run_menu(void)
        key_timeout = 0;        /* Cancels timeout */
        draw_row(entry-top+4, -1, top, 0, 0);
 
-       if ( to_clear ) {
-         /* Erase timeout message */
-         printf("\033[%d;1H%s\033[K", TIMEOUT_ROW, menu_attrib->screen);
-       }
-
        if ( menu_master_passwd ) {
          ok = ask_passwd(NULL);
          clear_screen();