Read in STDIN first, and only then start terminal IO, hopefully allowing the other program to finish its terminal IO before we start. Fixes #5934
Read in STDIN first, and only then start terminal IO, hopefully allowing the other program to finish its terminal IO before we start. Fixes #5934