Core Architecture & Internal Workings
// The Internal Event Loop
TermStudio runs on an asynchronous event loop. Key triggers, file events, and shell signals are captured and put into a high-performance event queue.
// Rendering Pipeline
Rendering uses a double-buffered screen layout. Changes are calculated as a layout diff, and only modified blocks are written to the terminal buffer, minimizing frame lag.
// Widget Hierarchy
All user interface components inherit from a base Widget class. Widgets handle their own draw cycles, cursor focus, and keyboard shortcuts.