Separated terminal IO, updated autoconf support.