On Mon, 2017-06-26 at 13:14 +, Edward Tomasz Napierala wrote:
> Author: trasz
> Date: Mon Jun 26 13:14:41 2017
> New Revision: 320360
> URL: https://svnweb.freebsd.org/changeset/base/320360
>
> Log:
> Make resizewin(1) do flushing by using TCSAFLUSH instead of TCSANOW
> followed by tcflush
2017-06-26 15:14 GMT+02:00 Edward Tomasz Napierala :
> + /* Disable echo, drain the input, and flush the output */
> if (tcgetattr(fd, &old) == -1)
> exit(1);
> + if (tcsetattr(fd, TCSAFLUSH, &new) == -1)
> exit(1);
Would it make sense to print
Author: trasz
Date: Mon Jun 26 13:14:41 2017
New Revision: 320360
URL: https://svnweb.freebsd.org/changeset/base/320360
Log:
Make resizewin(1) do flushing by using TCSAFLUSH instead of TCSANOW
followed by tcflush(3). This works just as well and is more elegant.
Suggested by: bde
MFC af