**CmdTextC** is a high-performance, terminal-based text editor engineered entirely in pure C99 with zero external dependencies. Designed for developers and systems programmers who value minimalism and efficiency, it delivers a responsive, ANSI-compatible editing experience across POSIX and Windows terminal emulators. At its core, CmdTextC employs a dual-buffer row architecture: each line maintains raw character storage (`chars`) alongside a tab-expanded render buffer (`render`), ensuring precise editing while guaranteeing accurate visual alignment. Syntax highlighting is decoupled via a parallel highlight array, enabling dynamic ANSI color emission without mutating source text. The editor features snapshot-based undo/redo with a 256-entry circular stack, providing O(1) state rollback and complete fidelity. Its rendering pipeline constructs a contiguous 64KB ANSI-encoded screen buffer in memory before a single `write()` syscall, minimizing I/O latency and eliminating terminal flicker. Key capabilities include viewport-aware scrolling, real-time cursor positioning, status/messaging bars with timeout control, and comprehensive ANSI escape code support for colors, cursor visibility, and inverse video. With strict memory management, deterministic resource lifecycle, and compile-time configurability (tab size, undo depth, message timeout), CmdTextC exemplifies efficient native C programming. The compact, portable binary (~100 KB) requires no installation or runtime libraries, making it ideal for embedded environments, remote SSH sessions, or educational exploration of terminal UI architecture. Licensed under MIT, CmdTextC offers complete transparency for customization, extension, or integration into larger toolchains. ⌨️💻🔧
Advanced CLI 3D Modeling Studio