# emulate 'script' command with extras log_file typescript spawn $env(SHELL) send_user "recording to file typescript\n" send_user "~s to stop recording, ~r to record\n" interact ~s "log_file" ~r "log_file typescript" send_user "recording to file typescript complete\n"