cli library
Test support for programs that write through package:twk/cli.dart: a
FakeCliTerminal that captures what is written and replays what is
typed, to hand a Cli, or Cli.run through its open:, in place of
the process's terminal; and the FakeClock it can be timed by.
Classes
- FakeCliTerminal
-
A
CliTerminalthat captures what is written and replays what is typed, in one of the three modes or with every capability given. - FakeClock
- A clock that moves only by elapse, and the zone (run) whose timers and microtasks it owns: a timer started there fires when elapse reaches its time, a microtask runs when the clock flushes them (flushMicrotasks), which elapse does after every timer. Its stopwatch reads it.
- Vt
- A terminal emulator of width × height cells that fails on what a terminal would show wrong: feed gives it the bytes an application writes, and cell, lines and the cursor (cx, cy) read back what the screen shows.