From 934e21a310174e13df947e7501d7384ab81b397b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Oct 2025 05:42:02 +0000 Subject: [PATCH] Update MAINLOOP_DEEP_DIVE.md with latest architectural changes Co-authored-by: tig <585482+tig@users.noreply.github.com> --- MAINLOOP_DEEP_DIVE.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MAINLOOP_DEEP_DIVE.md b/MAINLOOP_DEEP_DIVE.md index 98762df4f..044b1c6ca 100644 --- a/MAINLOOP_DEEP_DIVE.md +++ b/MAINLOOP_DEEP_DIVE.md @@ -48,7 +48,7 @@ After independently analyzing the Terminal.Gui codebase, Terminal.Gui uses a **m │ │ │ IConsoleInput IConsoleOutput │ │ IInputProcessor OutputBuffer │ -│ IComponentFactory IWindowSizeMonitor │ +│ IComponentFactory IConsoleSizeMonitor │ │ │ └──────────────────────────────────────────────────────────────────┘ ``` @@ -171,7 +171,7 @@ internal void IterationImpl() // 2. Check if any views need layout or drawing bool needsDrawOrLayout = AnySubViewsNeedDrawn(...); - bool sizeChanged = WindowSizeMonitor.Poll(); + bool sizeChanged = ConsoleSizeMonitor.Poll(); if (needsDrawOrLayout || sizeChanged) { @@ -218,7 +218,7 @@ IConsoleInput.Run(CancellationToken) **Platform-specific implementations:** - `NetInput` (DotNet driver) - Uses `Console.ReadKey()` - `WindowsInput` - Uses Win32 API `ReadConsoleInput()` -- `UnixDriver.UnixInput` - Uses Unix terminal APIs +- `UnixInput` (Unix driver) - Uses Unix terminal APIs ### Main UI Thread (Foreground) @@ -314,7 +314,7 @@ ApplicationMainLoop ├─ OutputBuffer (buffered drawing) ├─ ConsoleOutput (writes to terminal) ├─ TimedEvents (timeout callbacks) - ├─ WindowSizeMonitor (detects resizing) + ├─ ConsoleSizeMonitor (detects terminal resizing) └─ ToplevelTransitionManager (handles Top changes) ```