finish read and set terminal parameters