Added scrollback support. Issue #249