This feature is experimental. Key-bindings and other aspects are likely to change.
DomTerm includes a builtin “pager” that gives you
functionality similar to programs like
You can set “auto-pause” which enters the pager each time
a full screen has been displayed.
We will discuss two related modes. Pager mode does the following:
The key-bindings are changed to be more
less program or Emacs “view mode”.
Automatically scrolling (on output) is turned off.
Pause mode additionally does the following:
Suspends additional output from updating the display. Any not-yet-displayed output is queued up, and the sending (client process) will suspend too.
You enter pause mode in two basic ways
You manually enter pause mode by typing Ctrl-Shift-M.
You automatically enter pause mode if automatic pausing is enabled, and a “full screen” is displayed since last user interaction: Any further output would cause part of the visible screen to scroll off.
To enable automatic-pause mode on Electron you can
Automatic Pager option in the right-click (context) menu.
(You can also type
ctrl-shift-M (to enter pause mode);
shift-A (to enable auto-pause);
ctrl-shift-M (to exit pause mode).
This is obviously too awkward and needs to change.)
To enter pager mode, you first have to enter pause mode,
and then type
The following key-bindings are in effect in pager or paused mode.
Some other these may be prefixed by a numeric
Toggle automatic-pause mode on and off. (This is a klunky way to do it and is likely to change.)
Toggle between pager and pause mode.
Return to normal mode. If paused, allow further output.
count screenfuls down.
If we go past the bottom of the current output,
leave pause or pager mode, and allow further output.
Temporarily set automatic-pause mode, so that we pause again
if the screen fills up again.
count lines down.
Otherwise similar to Space.
count screenfuls up/down.
Scroll to the current “pager home”. (Details needed ...)
Scroll the end of the buffer. If paused and already at the end, un-pause. I.e. continue displaying output until the next action.
DomTerm does not yet implement a search command, but most browsers have a find-in-page command, commonly bound to Ctrl-F.
In addition the following work as in all other modes:
Scroll to top/bottom.
Scroll one “page” up or down.
Scroll one line up or down.