Scrollback in terminals

!!!! Not ready to merge !!!