local/pager

Types

LineMode = enum
  lmScript = "script", lmLocation = "location", lmUsername = "username",
  lmPassword = "password", lmCommand = "command", lmBuffer = "buffer",
  lmSearch = "search", lmGotoLine = "gotoLine", lmDownload = "download",
  lmAlert = "alert", lmMailcap = "mailcap"
Pager = ref object of RootObj
  lineEdit* {.jsget.}: LineEdit
  term*: Terminal
  timeouts*: TimeoutState

Procs

proc addPagerModule(ctx: JSContext): Opt[void] {....raises: [], tags: [],
    forbids: [].}
proc newPager(config: Config; forkserver: ForkServer; ctx: JSContext;
              alerts: seq[string]; loader: FileLoader; loaderPid: int;
              console: Console): Pager {....raises: [],
    tags: [RootEffect, TimeEffect, ReadDirEffect], forbids: [].}
proc run(pager: Pager; pages: openArray[JSValue]; contentType: string;
         charset: Charset; history: bool): int {....raises: [],
    tags: [ReadEnvEffect, RootEffect, ReadDirEffect, TimeEffect], forbids: [].}