aboutsummaryrefslogtreecommitdiffstats
path: root/com32/cmenu/libmenu
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-03 15:43:54 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-03 15:43:54 -0700
commitfde17fb11b78a31d97653569acf8255a621e791a (patch)
tree5cf690a70e4a2d50bf17458e83c64d080feaecce /com32/cmenu/libmenu
parentb580a0f00268d2e6f1771085d7a27c639cca41bf (diff)
downloadsyslinux-fde17fb11b78a31d97653569acf8255a621e791a.tar.gz
syslinux-fde17fb11b78a31d97653569acf8255a621e791a.tar.xz
syslinux-fde17fb11b78a31d97653569acf8255a621e791a.zip
cmenu: use printf instead of csprint with default attribute
We don't change the attribute in the help screen. Refactor the code to simply use printf. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/cmenu/libmenu')
-rw-r--r--com32/cmenu/libmenu/help.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32/cmenu/libmenu/help.c b/com32/cmenu/libmenu/help.c
index 5306aa9e..3b36c3d8 100644
--- a/com32/cmenu/libmenu/help.c
+++ b/com32/cmenu/libmenu/help.c
@@ -71,7 +71,7 @@ static void printtext(char *buf, int from)
if (p && (*p == '\n'))
*p = '\0'; // change to NUL
gotoxy(HELP_BODY_ROW, HELP_LEFT_MARGIN);
- csprint(f, 0x07);
+ printf(f);
if (p)
*p = '\n'; // set it back
}
@@ -117,7 +117,7 @@ void showhelp(const char *filename)
// Now we have a file just print it.
gotoxy(1, (nc - strlen(title)) / 2);
- csprint(title, 0x07);
+ printf(title);
numlines = countlines(text);
curr_line = 0;
scan = ESCAPE + 1; // anything except ESCAPE
@@ -170,7 +170,7 @@ out:
puke:
gotoxy(HELP_BODY_ROW, HELP_LEFT_MARGIN);
- csprint(line, 0x07);
+ printf(line);
while (1) {
inputc(&scan);
if (scan == ESCAPE)