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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! 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`]:
//! [`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`].
//! [`bridge`] materializes the live ported `Process` rows as `Proc`, and
//! [`panels`] is the running-TUI wiring — a thread-local state the run loop
//! feeds each refresh, dispatches keys through, and draws over the panels
//! (the monitoring analog of [`overlay`]).
//! [`help`] renders the styled `htoprs -h` screen (figlet banner + status box
//! + sectioned option list) shown in place of the plain ported `printHelpFlag`.
//! [`barstyle`] is the `b`-key bar fill-glyph cycler ported from storageshower
//! (Classic → Gradient → Solid → Thin → Ascii), consulted by the ported
//! `BarMeterMode_draw` fill loop and wired into the keybinding table as an
//! [`Htop_Action`].
//!
//! [`Htop_Action`]: crate::ported::action::Htop_Action