Added scrolling support for shell
Fixed infinite loop when flushing input history