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
41
//! htoprs-original extensions.
//!
//! Unlike [`crate::ported`], code here is not a 1:1 translation of htop's
//! C source and is therefore exempt from the `build.rs` port-purity gate.
//! It carries htoprs-only capabilities layered on top of the faithful port.
//!
//! [`theme`] holds the named color-scheme system ported from iftoprs
//! (originally from storageshower): 31 built-in 6-color palettes plus the
//! custom-theme plumbing. [`overlay`] holds the themed keyboard-help overlay,
//! theme chooser, and theme editor (also ported from iftoprs), which render
//! into a `ratatui::Buffer` using those palettes, plus the live-wiring
//! (`dispatch_key` / `draw_active`) the running TUI drives them through.
//! [`colors`] makes a selected theme recolor the actual htop UI in 256-color
//! via a base16-style ANSI palette remap consulted by `Ncurses::to_color`.
//!
//! The remaining modules are htoprs-original monitoring capabilities htop
//! lacks, built against [`model::Proc`] (a stand-in for the ported `Process`
//! until each is wired to `crate::ported::process`):
//! [`procring`] per-process CPU/mem history + sparkline column,
//! [`finder`] fuzzy process finder, [`snapshot`] capture + diff a table,
//! [`filter`] regex + saved named filters, [`export`] table -> JSON/CSV,
//! [`alerts`] debounced threshold rules, [`graph`] braille history graph.
//! [`braille`] is the shared glyph renderer used by [`procring`] and [`graph`].
//! [`help`] renders the styled `htoprs -h` screen (figlet banner + status box
//! + sectioned option list) shown in place of the plain ported `printHelpFlag`.