diff options
author | Peter Wemm <peter@FreeBSD.org> | 1995-09-04 01:22:54 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1995-09-04 01:22:54 +0000 |
commit | 692679202995666b5efe90866fcca27c21f0aa98 (patch) | |
tree | 2d8089156b3f1ca1485ed01ae1e0431a03d397c0 /usr.bin/w | |
parent | 5316959a2ce8f5da0c7a60936e75b936d8700b0e (diff) | |
download | src-692679202995666b5efe90866fcca27c21f0aa98.tar.gz src-692679202995666b5efe90866fcca27c21f0aa98.zip |
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.
Notes
Notes:
svn path=/head/; revision=10553
Diffstat (limited to 'usr.bin/w')
-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 e7cafcaacb7b..664d56f8f640 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) ? |