diff options
author | peter <peter@FreeBSD.org> | 1995-09-04 01:22:54 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-09-04 01:22:54 +0000 |
commit | 136c23f685c96f47a2db6da80d7a1488c1c14582 (patch) | |
tree | 2d8089156b3f1ca1485ed01ae1e0431a03d397c0 /usr.bin/w/w.c | |
parent | 791992935e57c6317ac27431773cdbf226a378de (diff) | |
download | FreeBSD-src-136c23f685c96f47a2db6da80d7a1488c1c14582.zip FreeBSD-src-136c23f685c96f47a2db6da80d7a1488c1c14582.tar.gz |
Increase the tty column width from 2 to 3 characters.
This gives us more room to breath with tty names, especially with drivers
that support large numbers of ports.. eg: specialix and digiboard.
This does not actually change the current tty names, it just allows room
for reporting more characters if the drivers use them.
Diffstat (limited to 'usr.bin/w/w.c')
-rw-r--r-- | usr.bin/w/w.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index e7cafca..664d56f 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -225,7 +225,7 @@ main(argc, argv) if (wcmd == 0) exit (0); -#define HEADER "USER TTY FROM LOGIN@ IDLE WHAT\n" +#define HEADER "USER TTY FROM LOGIN@ IDLE WHAT\n" #define WUSED (sizeof (HEADER) - sizeof ("WHAT\n")) (void)printf(HEADER); } @@ -318,7 +318,7 @@ main(argc, argv) ep->utmp.ut_host + UT_HOSTSIZE - x, x); p = buf; } - (void)printf("%-*.*s %-2.2s %-*.*s ", + (void)printf("%-*.*s %-3.3s %-*.*s ", UT_NAMESIZE, UT_NAMESIZE, ep->utmp.ut_name, strncmp(ep->utmp.ut_line, "tty", 3) && strncmp(ep->utmp.ut_line, "cua", 3) ? |