3 ms·
A nice function (not mentioned in this presentation) is the ability to send commands (-X) to a specific window in a screen session. This allows you to completel
by adulau 16y ago
A nice function (not mentioned in this presentation) is the ability to send commands (-X) to a specific window in a screen session. This allows you to completely control GNU Screen the shell or another programming environment while benefiting from the persistent or logging of a session.
screen -d -m -S mysession
screen -S mysession -X screen -a -tjob1 'top'
Using -X you can call the commands available within GNU Screen to control the session or the windows.
- pyre 16y agoThe Gnu Screen command 'stuff' writes directly to the STDIN on the window. This is how the REPL integration setups with screen/vim that appear on HN from time to time work. e.g. screen -a window1 -X stuff 'import sys' would send 'import sys' to whatever app was reading STDIN on window1.