New terminal and console code.