Add support for viewing output history (`scrollback').