Added ioctl to enable/disable scrolling.
Added device type for terminal.
Further work on terminal driver.