Re: svn commit: r320360 - head/usr.bin/resizewin

2017-06-26 Thread Ian Lepore
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

Re: svn commit: r320360 - head/usr.bin/resizewin

2017-06-26 Thread Ed Schouten
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

svn commit: r320360 - head/usr.bin/resizewin

2017-06-26 Thread Edward Tomasz Napierala
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