A modification of ttyrec to record input.