If I start a screen session with screen -dmS name, how would I access the command history of that screen session with a script?
screen -dmS name
Using the ↑, the
use this: screen -L with capital L it will store a copy of terminal input and output to a file named screenlog.0 or if you use -S to name it, the log file gets the screen name