1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use Duration;
/// Terminal event loop for the TUI.
///
/// Terminal input only. It previously also carried the engine's stats channel,
/// which made it the single point through which every measurement passed — a
/// responsibility that belongs to `runner::RunController`, and one that could
/// not be tested without a TTY. Keeping the loop to terminal concerns means the
/// run lifecycle is testable on its own and the input path has one job.