diff options
author | jmc <jmc@openbsd.org> | 2004-08-03 09:45:29 +0000 |
---|---|---|
committer | jmc <jmc@openbsd.org> | 2004-08-03 09:45:29 +0000 |
commit | 2e1836b3ee68425310e3e1b5577490d801ff6fcd (patch) | |
tree | 51d87bc7ab5994bdf17b812ce5dfeee5c03c0fc5 /usr.sbin/wsfontload | |
parent | insure -> ensure; (diff) | |
download | wireguard-openbsd-2e1836b3ee68425310e3e1b5577490d801ff6fcd.tar.xz wireguard-openbsd-2e1836b3ee68425310e3e1b5577490d801ff6fcd.zip |
- kill a rake of unnecessary .Bk/.Ek macros
- simplify SYNOPSIS
- sort options
- adjust -width for FILES
- standard EXAMPLES format
- sync usage()
Diffstat (limited to 'usr.sbin/wsfontload')
-rw-r--r-- | usr.sbin/wsfontload/wsfontload.8 | 36 | ||||
-rw-r--r-- | usr.sbin/wsfontload/wsfontload.c | 7 |
2 files changed, 14 insertions, 29 deletions
diff --git a/usr.sbin/wsfontload/wsfontload.8 b/usr.sbin/wsfontload/wsfontload.8 index 354f8b911f4..371f900a869 100644 --- a/usr.sbin/wsfontload/wsfontload.8 +++ b/usr.sbin/wsfontload/wsfontload.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: wsfontload.8,v 1.14 2003/06/12 12:59:54 jmc Exp $ +.\" $OpenBSD: wsfontload.8,v 1.15 2004/08/03 09:45:29 jmc Exp $ .\" $NetBSD: wsfontload.8,v 1.5 1999/04/06 04:54:22 cgd Exp $ .\" .\" Copyright (c) 1999, 2001 @@ -34,30 +34,14 @@ .Sh SYNOPSIS .Nm wsfontload .Bk -words -.Op Fl B -.Ek -.Bk -words -.Op Fl b -.Ek -.Bk -words +.Op Fl Bbl .Op Fl e Ar encoding -.Ek -.Bk -words .Op Fl f Ar file -.Ek -.Bk -words .Op Fl h Ar height -.Ek -.Bk -words -.Op Fl l -.Ek -.Bk -words .Op Fl N Ar name -.Ek -.Bk -words .Op Fl w Ar width -.Ek .Op Ar fontfile +.Ek .Sh DESCRIPTION The .Nm @@ -75,12 +59,12 @@ is not provided. .Pp The options are as follows: .Bl -tag -width Ds -.It Fl b -Specifies that the font data is ordered right-to-left bit wise. -The default is left-to-right. .It Fl B Specifies that the font data is ordered right-to-left byte wise. The default is left-to-right. +.It Fl b +Specifies that the font data is ordered right-to-left bit wise. +The default is left-to-right. .It Fl e Ar encoding Sets the encoding of the font. This can be either a symbolic abbreviation or a numeric value. @@ -127,19 +111,21 @@ No font files are provided with the wscons framework. The fonts installed by PCVT can be used instead, as can raw font files from other operating system distributions. .Sh FILES -.Bl -tag -width /etc/wscons.conf -compact +.Bl -tag -width "/usr/share/misc/pcvtfonts/XX" -compact .\" .It Pa /etc/wscons.conf .\" wscons configuration file .It Pa /usr/share/misc/pcvtfonts/ fonts directory. .El .Sh EXAMPLES -.Li "# wsfontload -N myname -h 8 -e ibm /usr/share/misc/pcvtfonts/vt220l.808" -.Pp Load the IBM-encoded 8x8-font from the PCVT distribution. This (or another 8x8-font) is necessary to use the 50-line screen type on .Xr vga 4 displays. +.Bd -literal -offset indent +# wsfontload -N myname -h 8 -e ibm \e + /usr/share/misc/pcvtfonts/vt220l.808 +.Ed .Sh SEE ALSO .Xr wscons 4 , .Xr wsconscfg 8 , diff --git a/usr.sbin/wsfontload/wsfontload.c b/usr.sbin/wsfontload/wsfontload.c index 52fc2aae1bf..3a4764141b4 100644 --- a/usr.sbin/wsfontload/wsfontload.c +++ b/usr.sbin/wsfontload/wsfontload.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsfontload.c,v 1.8 2004/08/01 18:32:21 deraadt Exp $ */ +/* $OpenBSD: wsfontload.c,v 1.9 2004/08/03 09:45:29 jmc Exp $ */ /* $NetBSD: wsfontload.c,v 1.2 2000/01/05 18:46:43 ad Exp $ */ /* @@ -61,10 +61,9 @@ usage(void) extern char *__progname; (void)fprintf(stderr, - "usage: %s [-f file] -l\n" - " %s [-B] [-b] [-e encoding] [-f file] [-h height] [-N name]\n" + "usage: %s [-Bbl] [-e encoding] [-f file] [-h height] [-N name]\n" " %*s [-w width] [fontfile]\n", - __progname, __progname, (int)strlen(__progname), ""); + __progname, (int)strlen(__progname), ""); exit(1); } |