Add 256-color and TTY display modes #17

Closed
opened 2026-11-16 14:39:26 +00:00 by aaron · 1 comment
Owner

Story

As a TrueNAS user, I want to use tntop without truecolor or Unicode graph support so that monitoring fits my workflow.

Context

Parent scope: #7.

Adapt truecolor and force_tty behavior throughout the UI. Add the built-in TTY theme; it is not present today.

Upstream: btop 5d03929a.

Acceptance criteria

  • Provide truecolor and forced TTY settings and expose them when the options editor is available.
  • Convert RGB palettes to 256 colors when truecolor is off.
  • TTY mode uses a 16-color theme, TTY graphs and compatible borders, meters and labels.
  • Apply modes consistently to the dashboard, menus, dialogs and server picker.
  • Leaving TTY mode restores the selected theme and graph preferences rather than overwriting them.
  • Test color conversion, symbol output and mode changes without corrupting saved choices.

Validation

Run focused tests through mise run test --filter <name> and relevant existing mise format/lint tasks. Record interactive or platform checks required by this issue; report anything untested.

Dependencies

Blocked by #14, #18.

## Story As a TrueNAS user, I want to use tntop without truecolor or Unicode graph support so that monitoring fits my workflow. ## Context Parent scope: #7. Adapt truecolor and force_tty behavior throughout the UI. Add the built-in TTY theme; it is not present today. Upstream: [btop 5d03929a](https://github.com/aristocratos/btop/tree/5d03929a45e0720a4c8e2d189360ff1eb9ce1731). ## Acceptance criteria - [x] Provide truecolor and forced TTY settings and expose them when the options editor is available. - [x] Convert RGB palettes to 256 colors when truecolor is off. - [x] TTY mode uses a 16-color theme, TTY graphs and compatible borders, meters and labels. - [x] Apply modes consistently to the dashboard, menus, dialogs and server picker. - [x] Leaving TTY mode restores the selected theme and graph preferences rather than overwriting them. - [x] Test color conversion, symbol output and mode changes without corrupting saved choices. ## Validation Run focused tests through `mise run test --filter <name>` and relevant existing mise format/lint tasks. Record interactive or platform checks required by this issue; report anything untested. ## Dependencies Blocked by #14, #18.
aaron added this to the v0.2.0 milestone 2026-11-16 14:41:41 +00:00
Author
Owner

Verified against pushed main at 1a17d5f520. Completing commit: 13513f6e22.

Checked RGB-to-256-color conversion and TTY rendering in src/ui/display.rs. Tests exercise the dashboard and all overlays, ASCII symbols, 16-color output and restoring selected themes/graph preferences.

Fresh checks: all 103 Rust/CLI tests, all lint tasks, all-target/all-feature compilation, build, and all 3 Unix installer tests passed on macOS. The owner approved the live UI and panel-border controls. Final cross-platform packaged-binary checks remain in #7.

Closing after verification; the push stopped automatic issue processing at the dependency on #10.

Verified against pushed main at 1a17d5f520b4aee3f38250931223df054858f6fb. Completing commit: 13513f6e22fa1b3ce1532cc3a26a44fec0c85ca3. Checked RGB-to-256-color conversion and TTY rendering in src/ui/display.rs. Tests exercise the dashboard and all overlays, ASCII symbols, 16-color output and restoring selected themes/graph preferences. Fresh checks: all 103 Rust/CLI tests, all lint tasks, all-target/all-feature compilation, build, and all 3 Unix installer tests passed on macOS. The owner approved the live UI and panel-border controls. Final cross-platform packaged-binary checks remain in #7. Closing after verification; the push stopped automatic issue processing at the dependency on #10.
aaron closed this issue 2026-11-16 17:29:31 +00:00
Sign in to join this conversation.
No description provided.