[Bug 248377] [PATCH] script(1): Enable proper playback [-p] of curses sessions

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Aug 7 07:34:24 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248377

SOUMENDRA GANGULY <0.gangzta at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #216973|0                           |1
        is obsolete|                            |

--- Comment #9 from SOUMENDRA GANGULY <0.gangzta at gmail.com> ---
Created attachment 217063
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=217063&action=edit
script.diff

Adds elegant error handling. For example, instead of using isatty followed by
tcgetattr, tcgetattr is directly used. This is logical because
freebsd/lib/libc/gen/isatty.c suggests that isatty is actually implemented
using tcgetattr. Upon failure of tcgetattr, errno is checked to decide if
stdout is a tty. 

Note: I am comfortable with Bugzilla now. Therefore, I am closing the GitHub
pull request.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list