Repository navigation
ram-tui v1.0.3 — Security Hardening, Fail-Closed Installers & Visual Polish
🚀 RAM-TUI v1.0.3 — Maintenance & Hardening Release
This maintenance release hardens terminal escape safety, upgrades bootstrap installers to fail-closed cryptographic verification, refines Windows swap telemetry, optimizes the render loop, and resolves visual border alignment in the Theme Selector modal.
🛡️ Security & Hardening Fixes
-
Sanitized Hostname Against Terminal Escape Injection:
- Consolidated system hostname extraction into
core_render::format::get_hostname(). - The live TUI header now sanitizes raw
HOSTNAME/COMPUTERNAMEenvironment values throughsanitize_text(), stripping ANSI escape sequences, control bytes, and Unicode directional overrides. - Added unit test
test_get_hostname_sanitized.
- Consolidated system hostname extraction into
-
Strict Fail-Closed Installer Checksum Verification:
- Updated both
install.shandinstall.ps1to be strictly fail-closed: if the release.sha256digest cannot be retrieved, or hashing utilities are absent, or checksum verification fails, the installer aborts immediately with an error and cleans up the binary instead of continuing unverified.
- Updated both
-
Input Sanitization on
--filterCLI Argument:- Enforced the printable ASCII allowlist (
' '..='~') on the startup--filterflag, matching the live interactive search box and preventing terminal escape injection through wrapper scripts.
- Enforced the printable ASCII allowlist (
🐛 Bug Fixes & Architectural Enhancements
-
Theme Selector Modal Border Alignment:
- Fixed a visual glitch where right borders (
│) on theme selection rows were shifted by 8 characters due to static space counts. - All rows now dynamically calculate exact column width via
visible_cell_width()and pad to the 38-column box width. - Centered and dynamically padded the modal footer key navigation legend.
- Added regression test
test_theme_modal_box_alignmentverifying box width consistency across all 13 themes.
- Fixed a visual glitch where right borders (
-
Real Windows Pagefile Swap Telemetry:
- Replaced hardcoded
swap_used = 0on Windows with accurate committed memory differentialcommit_as.saturating_sub(total).min(swap_total).
- Replaced hardcoded
-
Render Loop Performance & Code Deduplication:
- Cached TrueColor
Palettestate across frames, eliminating ~10-20 heap string allocations per frame on unchanged ticks. - Reused
FrameBuffer::prevvector capacity withclear()+extend_from_slice()instead of cloning every line. - Unified tick-loop and post-keypress rendering call sites into a single macro.
- Wired
FrameBuffer::invalidate()to trigger on terminal window resize and display mode switches.
- Cached TrueColor
📦 Quick Install / Upgrade
Linux & macOS
curl -fsSL https://raw.githubusercontent.com/BlackFeather-git/ram-tui/main/install.sh | bashWindows (PowerShell)
irm https://raw.githubusercontent.com/BlackFeather-git/ram-tui/main/install.ps1 | iex