Show
Ignore:
Timestamp:
11/01/09 05:32:26 (3 years ago)
Author:
Pierre-Alexandre Meyer <pierre@…>
Children:
6e20c10dbc1b6740f94a01f74d6eeda8bb3a7ca4
Parents:
111fe227a44f170e91f2d6f57dd6ce285b67a56a
git-committer:
Pierre-Alexandre Meyer <pierre@mouraf.org> / 2009-10-31T22:32:26Z-0700
Message:

hdt: change remaining printf to more_printf (CLI)

A lot of places still had printf() instead of more_printf().
This patch does a bulk update and add missing reset_more_printf(),
used to reset the pager counter between each command call.

This also changes the more_printf() routine to delete the "--More--"
line while scrolling.

Signed-off-by: Pierre-Alexandre Meyer <pierre@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • com32/hdt/hdt-cli-syslinux.c

    ra9d9ad r78f771  
    4040                        struct s_hardware *hardware) 
    4141{ 
    42   printf("SYSLINUX\n"); 
    43   printf(" Bootloader : %s\n", hardware->syslinux_fs); 
    44   printf(" Version    : %s\n", hardware->sv->version_string + 2); 
    45   printf(" Version    : %u\n", hardware->sv->version); 
    46   printf(" Max API    : %u\n", hardware->sv->max_api); 
    47   printf(" Copyright  : %s\n", hardware->sv->copyright_string + 1); 
     42  reset_more_printf(); 
     43  more_printf("SYSLINUX\n"); 
     44  more_printf(" Bootloader : %s\n", hardware->syslinux_fs); 
     45  more_printf(" Version    : %s\n", hardware->sv->version_string + 2); 
     46  more_printf(" Version    : %u\n", hardware->sv->version); 
     47  more_printf(" Max API    : %u\n", hardware->sv->max_api); 
     48  more_printf(" Copyright  : %s\n", hardware->sv->copyright_string + 1); 
    4849} 
    4950