]> diplodocus.org Git - nmh/commit
scan(): Don't ioctl(2) for TTY's width every call.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 13 Aug 2017 15:33:06 +0000 (16:33 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 13 Aug 2017 15:33:06 +0000 (16:33 +0100)
commit7d81fd0ae7fc14189d7758c78a5168921c7ef11b
tree8de05049287052b9c494480067d3919b3fca5620
parentec18722d02bd307bd09f30715dc8ba4e1b8a6716
scan(): Don't ioctl(2) for TTY's width every call.

Saves a system call per message scanned.  Does mean it won't adjust
should the terminal width change mid scan, but that seems fine;  after
all, the retrieved width could be out of date by the time a message's
output is written anyway.
uip/scansbr.c