'script' command in terminal, looking for a flush open
You can achieve more or less the same result by running

script -t 0


From the man page:

-t time  Specify time interval between flushing script output file.
         A value of 0 causes script to flush for every
         character I/O event.  The default interval is 30 seconds.