Scripting tmux
This comment was posted using tmux scripting, as follows:    set -x
    send(){ tmux send "$@";}       
    send 'links -no-connect https://news.ycombinator.com/login?goto=news' ;
    send c-m; sleep 2;
    send 3xblah c-m $HNPASSWORD c-m c-m c-m; sleep 2;
    send Escape; sleep 1; send V S; sleep 1;
    send 'scripting tmux' c-m Down Down Down Down Down Down c-m;
    send Escape; sleep 1; send V S; sleep 1;
    send 'add comment' c-m Up;
    send 'This comment was posted using tmux scripting, as follows: ' c-m; 
    a=$(sed '5,18!d' $0); sleep 2;
    send "$a"; sleep 2; send c-m c-m Down c-m;