summaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorErik Andersen2000-04-18 00:00:52 +0000
committerErik Andersen2000-04-18 00:00:52 +0000
commita6c752201e9031b51a6d89349f1cec1f690f56ef (patch)
tree808a54e0dc112d8b32326ccdb411e4300dc65d76 /console-tools
parent91e581fa0438b39ceb0ffb4ddcb90ee4d260ae81 (diff)
downloadbusybox-a6c752201e9031b51a6d89349f1cec1f690f56ef.zip
busybox-a6c752201e9031b51a6d89349f1cec1f690f56ef.tar.gz
Updates
-Erik
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/loadfont.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c
index 64b7256..0f6afec 100644
--- a/console-tools/loadfont.c
+++ b/console-tools/loadfont.c
@@ -30,8 +30,8 @@
#define PSF_MAXMODE 0x03
#define PSF_SEPARATOR 0xFFFF
-static const char loadfont_usage[] = "loadfont\n"
- "\n" "\tLoad a console font from standard input.\n" "\n";
+static const char loadfont_usage[] = "loadfont\n\n"
+ "Loads a console font from standard input.\n";
struct psf_header {
unsigned char magic1, magic2; /* Magic number */
@@ -47,6 +47,10 @@ extern int loadfont_main(int argc, char **argv)
{
int fd;
+ if (argc>=2 && *argv[1]=='-') {
+ usage(loadfont_usage);
+ }
+
fd = open("/dev/tty0", O_RDWR);
if (fd < 0) {
fprintf(stderr, "Error opening /dev/tty0: %s\n", strerror(errno));