Combine send-keys calls to reduce flickering
Output scrollback directly into file
Don't clutter /tmp