screens
Modal screens: HelpScreen, EasterEggScreen, JobLogScreen.
Classes¶
EasterEggScreen ¶
Bases: ModalScreen[None]
Modal easter egg overlay; any of escape/space/enter/q dismisses it.
The Fulcrum logo is rendered to fill the terminal at mount time and re-rendered on resize so it tracks window changes.
Source code in snakesee/tui/screens.py
HelpScreen ¶
Bases: ModalScreen[None]
Modal help overlay; any of escape/space/enter/q/? dismisses it.
Source code in snakesee/tui/screens.py
JobLogScreen ¶
Bases: ModalScreen[None]
Modal log viewer for a single job; escape or q dismisses it.
The global toggle keys (pause/estimation/wildcard/accessibility/refresh) are re-bound here to the app's actions so they keep working while a log is open — app-level BINDINGS don't fire under a modal screen, so the keys would otherwise be inert in log-viewing mode.
Source code in snakesee/tui/screens.py
Methods:¶
__init__ ¶
Initialize with the log path (shown as the border title) and tail lines.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
log_path
|
Path | None
|
Path to the job's log file, or None if unknown. |
required |
lines
|
list[str]
|
Tail lines (most recent at end) to render in the RichLog. |
required |
header_lines
|
list[Text] | None
|
Optional styled lines rendered above the log (e.g. a
remote job's external id and console/CloudWatch links). Rich
|
None
|
Source code in snakesee/tui/screens.py
compose ¶
Yield a single RichLog widget that will be populated on mount.
Source code in snakesee/tui/screens.py
on_mount ¶
Write the optional header and captured tail lines into the RichLog widget.