first pass of terminal emulation
second pass of command line emulation
add terminal controls