実行環境 項目 バージョン OS Ubuntu 20.04 LTS インストール $ sudo apt update $ sudo apt install ttyrec ttygif xdotool ttyrecをインストールするとttyplayもインストールされる 使用方法 録画、録画停止 $ export WINDOWID=$(xdotool getwindowfocus) $ ttyrec out.tty $ ./hoge . . . $ ctrl + D 再生 $ ttyplay out.tty gif化 $ ttygif out.tty 参考 walialu.com 0xcc.net