macos - 在Mac上录制终端的脚本

标签 macos terminal

script是一个很好的工具,可以记录终端(http://linuxers.org/article/script-command-line-tool-recordsave-your-terminal-activity)中的所有 Activity 。 Mac上的内置script可执行文件无法记录 typescript 的计时。我正在尝试编译util-linux软件包(https://github.com/karelzak/util-linux,其中包含linux版本script),但没有成功:

$ 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

Mac上有编译的可执行文件吗?

最佳答案

ttyrec包括一个针对计时问题的修复程序,并且出于所有意图和目的,都具有相同的功能(在其联机帮助页中描述为script的派生版本)。可通过brew(brew install ttyrec)或MacPorts(sudo port install ttyrec)使用。

  • ttyrec:官方网站
  • shelr.tv:用于终端记录的YouTube
  • ttygif:将终端记录转换为GIF动画
  • 关于macos - 在Mac上录制终端的脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17942186/

    相关文章:

    ios - 使用 AVPlayer 播放流媒体视频

    C: MD5 给出垃圾作为结果

    bash - 如何使用参数打开 AppleScript 应用程序

    python - Bash 脚本 : No such file or directory

    unix - 如何直接从终端/命令行运行 Golang) 代码?

    c++ - 关于在 Xcode 中使用 C++ 构建 MacOSX GUI 应用程序的指南、教程或书籍?

    c - 使用 C 在 OS X 中上次修改文件后获取时间?

    python - Mac + virtualenv + pip + postgresql = 错误 : pg_config executable not found

    php - 从终端使用 XDebug(仅获得 SSH 访问权限)

    ruby - 在 Mac OS X 上安装 Homebrew 无法连接到 raw.githubusercontent.com 端口 443