I'm trying to build a bash script to launch a screen session, split the screen and then resize one of the screens. Below is what I run manually from the terminal.
$screen
$ cd /some/directory
Controla then ShiftS //splits the screen in two
Controlatab //navigate to the "new" screen
Controlc //create another terminal
Controla :resize -15 //resize the screen
$cd /another/dictionary
Controlatab //navigate to the first screen
$clear
I've done some bash scripting but nothing with keystrokes. I've been trying to find something to send controla within a bash script but I'm not sure if I can or if after I launch screen if I can interact with screen that way. I haven't been able to find anything in my googling yet. Any help or direction is greatly appreciated.