diff options
author | brian <brian@FreeBSD.org> | 1998-10-17 12:28:05 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-10-17 12:28:05 +0000 |
commit | fcc01f48ac943442cd416e6e518e1e3802b88c68 (patch) | |
tree | c423f84ab49c2e60435f8ca7e00d17876abc54bd /usr.sbin | |
parent | 6d25736c571cd9c9acd8e2b632b947a4dcdd6a09 (diff) | |
download | FreeBSD-src-fcc01f48ac943442cd416e6e518e1e3802b88c68.zip FreeBSD-src-fcc01f48ac943442cd416e6e518e1e3802b88c68.tar.gz |
Move help displays left one column to avoid problems with
broken terminals that can't handle 80 columns followed by
a linefeed.
Pointed out by: bde@FreeBSD.org
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/command.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 1b74fc5..071df09 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: command.c,v 1.165 1998/08/29 23:02:42 brian Exp $ + * $Id: command.c,v 1.166 1998/09/17 00:45:26 brian Exp $ * */ #include <sys/types.h> @@ -131,7 +131,7 @@ #define NEG_DNS 50 const char Version[] = "2.0"; -const char VersionDate[] = "$Date: 1998/08/29 23:02:42 $"; +const char VersionDate[] = "$Date: 1998/09/17 00:45:26 $"; static int ShowCommand(struct cmdargs const *); static int TerminalCommand(struct cmdargs const *); @@ -203,7 +203,9 @@ HelpCommand(struct cmdargs const *arg) if (cmd->name && (cmd->lauth & arg->prompt->auth)) { cx = showcx(cmd); cxlen = cmax - strlen(cmd->name); - prompt_Printf(arg->prompt, " %s%-*.*s: %-*.*s", + if (n % cols != 0) + prompt_Printf(arg->prompt, " "); + prompt_Printf(arg->prompt, "%s%-*.*s: %-*.*s", cmd->name, cxlen, cxlen, cx, dmax, dmax, cmd->helpmes); if (++n % cols == 0) prompt_Printf(arg->prompt, "\n"); |