Use the two command:

cat /dev/vcs1 >screenshot
script screen.log

this will start record what you input and what it outputs in the first opened terminal window.
If you have opened several terminal windows you can change the number 1 to 2 or 3 which means the second terminal window or the third terminal window.

When you type:


this stops record,and you can see the file “screen.log” for what you did.