title: script to record terminal on Mac
body: <p><code>script</code> is a great tool to record all activities in terminal(<a href="http://linuxers.org/article/script-command-line-tool-recordsave-your-terminal-activity" rel="noreferrer">http://linuxers.org/article/script-command-line-tool-recordsave-your-terminal-activity</a>). The builtin <code>script</code> executable on Mac is not able to record the timing of the typescript. I am trying to compile the package util-linux (<a href="https://github.com/karelzak/util-linux" rel="noreferrer">https://github.com/karelzak/util-linux</a>, which contains linux version <code>script</code>) but without success:</p>
  
  <pre><code>$ make
  make  all-recursive
  Making all in po
  make[2]: Nothing to be done for `all'.
    CC       lib/libcommon_la-strutils.lo
  In file included from lib/strutils.c:16:
  ./include/strutils.h:77: error: conflicting types for 'strmode'
  /usr/include/string.h:168: error: previous declaration of 'strmode' was here
  lib/strutils.c:351: error: conflicting types for 'strmode'
  /usr/include/string.h:168: error: previous declaration of 'strmode' was here
  lib/strutils.c: In function 'size_to_human_string':
  lib/strutils.c:442: warning: format '%jd' expects type 'intmax_t', but argument 8 has type 'uint64_t'
  make[2]: *** [lib/libcommon_la-strutils.lo] Error 1
  make[1]: *** [all-recursive] Error 1
  make: *** [all] Error 2
  </code></pre>
  
  <p>Is there any compiled excutable out there for Mac?</p>