This is a public, read-only report. Striff reads this repository's docs, turns each sentence that makes a claim about the code into a rule, and checks the rule against the code on the default branch. How this works
Each sentence below has a stale name: a type the default branch doesn't declare, or declares somewhere else. Edit the doc so it matches the code, or bring the type back.
MouseEventArgs args = new () { Position = new Point(5, 5) };
The repository once had Terminal.Gui/Input/Mouse/MouseEventArgs.cs. It doesn't now. Closest names there: GrabMouseEventArgs, CommandEventArgs, PasteEventArgs.
The repository once had Terminal.Gui/Input/Mouse/MouseEventArgs.cs. It doesn't now. Closest names there: GrabMouseEventArgs, CommandEventArgs, PasteEventArgs.
Type MouseEventArgs, Use Case Mouse input, Key Properties Position , Flags , Handled
The repository once had Terminal.Gui/Input/Mouse/MouseEventArgs.cs. It doesn't now. Closest names there: GrabMouseEventArgs, CommandEventArgs, PasteEventArgs.
The repository once had Terminal.Gui/Input/Mouse/MouseEventArgs.cs. It doesn't now. Closest names there: GrabMouseEventArgs, CommandEventArgs, PasteEventArgs.
TuiConfigurationBuilder is in Terminal.Gui.Configuration
Holds
Terminal.Gui.Drawing.Attribute — The color/style Attribute is a readonly record struct in Terminal.Gui.Drawing; it collides with System.Attribute. Qualify or alias it when System is also imported.
2 rules from this sentence
Attribute is a value type
Holds
Attribute is declared readonly
Holds
Use UseRasterGraphics and IsUsingRasterGraphics for new code;
2 rules from this sentence
ImageView has UseRasterGraphics
Holds
ImageView has IsUsingRasterGraphics
Holds
UseSixel and IsUsingSixel remain obsolete compatibility shims.
2 rules from this sentence
ImageView has UseSixel
Holds
ImageView has IsUsingSixel
Holds
The static <xref:Terminal.Gui.App.Application> class is marked obsolete but still functional for backward compatibility.
Application is annotated with Obsolete
Holds
Every view now has an <xref:Terminal.Gui.ViewBase.View.App> property that references its application context:
View has App
Holds
Terminal.Gui v2 introduces the IRunnable interface pattern that decouples runnable behavior from the Runnable class hierarchy.
IRunnable is a contract
Holds
Init() - Returns <xref:Terminal.Gui.App.IApplication> for chaining
IApplication has an Init method
Holds
Run<TRunnable>() - Creates and runs runnable, returns <xref:Terminal.Gui.App.IApplication>
IApplication has Run
Holds
GetResult() / GetResult<T>() - Extract typed result after run
IApplication has a GetResult method
Holds
During disposal, MainLoopCoordinator.Stop() performs terminal-side cleanup (including kitty keyboard disable when it was enabled) before disposing output resources.
MainLoopCoordinator has a Stop method
Holds
<xref:Terminal.Gui.App.IRunnable.IsRunning> - True when runnable is on <xref:Terminal.Gui.App.IApplication.SessionStack>
IRunnable has IsRunning
Holds
<xref:Terminal.Gui.App.IRunnable.IsModal> - True when runnable is at top of stack (capturing all input)
IRunnable has IsModal
Holds
Result - Typed result value set before stopping
IRunnable has Result
Holds
Event <xref:Terminal.Gui.App.IRunnable.IsRunningChanging>, Cancellable ✓, When Before add/remove from stack, Use Case Extract result, prevent close
IRunnable has IsRunningChanging
Holds
Event <xref:Terminal.Gui.App.IRunnable.IsRunningChanged>, Cancellable ✗, When After stack change, Use Case Post-start/stop cleanup
IRunnable has IsRunningChanged
Holds
Event IsModalChanged, Cancellable ✗, When After modal state change, Use Case Update UI after focus change
IRunnable has IsModalChanged
Holds
The <xref:Terminal.Gui.App.IApplication.SessionStack> manages all running <xref:Terminal.Gui.App.IRunnable> sessions:
IApplication has SessionStack
Holds
<xref:Terminal.Gui.App.IApplication.TopRunnable> returns current modal runnable
IApplication has TopRunnable
Holds
Important: The static <xref:Terminal.Gui.App.Application> class uses a singleton (Application.Instance), while Application.Create() creates new instances.
2 rules from this sentence
Application has Instance
Holds
Application has a Create method
Holds
Applications manage sessions through Begin() and End():
IApplication has Begin and End methods
Holds
The <xref:Terminal.Gui.App.IApplication.ForceDriver> property is a configuration property that allows you to specify which driver to use.
IApplication has ForceDriver
Holds
The static Application.ForceDriverChanged event is raised when the <xref:Terminal.Gui.App.IApplication.ForceDriver> property changes:
Application has ForceDriverChanged
Holds
Similar to <xref:Terminal.Gui.ViewBase.View.App>, views now have a Driver property for accessing driver functionality.
View has Driver
Holds
IApplication.Screen is the single source of truth for the rendering region:
IApplication has Screen
Holds
AnsiOutput.SetCursorPositionImpl adds App.Screen.Y to row coordinates.
AnsiOutput has SetCursorPositionImpl
Holds
ApplicationMouse.RaiseMouseEvent subtracts App.Screen.Y from ScreenPosition.Y.
ApplicationMouse has RaiseMouseEvent
Holds
Values — Append-only chain of values accumulated as the command propagates.
ICommandContext has Values
Holds
Value — Convenience accessor returning Values[^1] (the most recently appended value), or null if empty.
ICommandContext has Value
Holds
The <xref:Terminal.Gui.ViewBase.DimAuto> type is a specialized <xref:Terminal.Gui.ViewBase.Dim> class in Terminal.Gui v2 that enables automatic sizing of a <xref:Terminal.Gui.ViewBase.View> based on its content.
DimAuto extends Dim
Holds
The <xref:Terminal.Gui.ViewBase.DimAutoStyle> enum defines the different strategies that <xref:Terminal.Gui.ViewBase.DimAuto> can employ to size a view.
DimAutoStyle is an enumeration
Holds
<xref:Terminal.Gui.App.Application.LayoutAndDraw(System.Boolean)> can be called to immediately trigger layout and drawing outside of the normal iteration cycle
Application has a LayoutAndDraw method
Holds
Tests can call Draw() directly to update the back buffer, then call IDriver.Refresh() to output to the terminal
IDriver has a Refresh method
Holds
Setting formatting options, such as TextFormatter.Alignment.
After all peers complete, MarginView.DrawMargins() performs a second pass that draws transparent margins (shadows).
MarginView has a DrawMargins method
Holds
For example, to prevent the viewport from being cleared, override OnClearingViewport() to return true, or subscribe to the ClearingViewport event and set Cancel = true.
View has an OnClearingViewport method
Holds
When ImageView.UseRasterGraphics is true, the driver uses the best available terminal raster protocol:
ImageView has UseRasterGraphics
Holds
Kitty graphics, when <xref:Terminal.Gui.Drivers.IDriver.KittyGraphicsSupport> reports support and the output path has Kitty enabled.
IDriver has KittyGraphicsSupport
Holds
Sixel, when Kitty is not active and <xref:Terminal.Gui.Drivers.IDriver.SixelSupport> reports support.
IDriver has SixelSupport
Holds
use UseRasterGraphics and IsUsingRasterGraphics in new code.
ImageView has IsUsingRasterGraphics
Holds
The obsolete ImageView.UseSixel and ImageView.IsUsingSixel members still work as compatibility shims;
2 rules from this sentence
ImageView has UseSixel
Holds
ImageView has IsUsingSixel
Holds
To customize Sixel encoding, assign ImageView.SixelEncoder before setting Image.
ImageView has SixelEncoder
Holds
Bold, underline, and other formatting attributes are supported via the Attribute.Style property.
Attribute has Style
Holds
Terminal.Gui supports 24-bit true color (16.7 million colors) via the <xref:Terminal.Gui.Drawing.Color> struct.
Color is a value type
Holds
Terminal.Gui provides comprehensive support for W3C standard color names plus additional common terminal colors via the <xref:Terminal.Gui.Drawing.StandardColor> enum.
StandardColor is an enumeration
Holds
Color.None is a special sentinel value (alpha=0) that tells the driver to emit ANSI reset codes (CSI 39m / CSI 49m) instead of explicit RGB values.
Color has None
Holds
The Color.IsDarkColor() method returns true if a color's HSL lightness is below 50%.
Color has an IsDarkColor method
Holds
Color.GetBrighterColor(double, bool?) — Makes a color more visually prominent.
Color has a GetBrighterColor method
Holds
Color.GetDimmerColor(double, bool?) — Makes a color less visually prominent.
Color has a GetDimmerColor method
Holds
The <xref:Terminal.Gui.Drawing.Glyphs> class defines the common set of glyphs used to draw checkboxes, lines, borders, etc...
Glyphs is a concrete implementation
Holds
It has a Start point, a Length (positive = right/down, negative = left/up, zero = a single junction point), an Orientation, a <xref:Terminal.Gui.Drawing.LineStyle>, and an optional color <xref:Terminal.Gui.Drawing.Attribute>.
4 rules from this sentence
StraightLine has Start
Holds
StraightLine has Length
Holds
StraightLine has Orientation
Holds
StraightLine has Attribute
Holds
When you call GetCellMap(), the canvas walks every point within its bounds:
LineCanvas has a GetCellMap method
Holds
Every <xref:Terminal.Gui.ViewBase.View> has its own LineCanvas.
View has LineCanvas
Holds
When SuperViewRendersLineCanvas is true on a SubView, its lines are merged into the SuperView's canvas via LineCanvas.Merge().
2 rules from this sentence
View has SuperViewRendersLineCanvas
Holds
LineCanvas has a Merge method
Holds
SubViews that render their own LineCanvas independently (the default) are composited using a painters' algorithm during View.RenderLineCanvas().
View has a RenderLineCanvas method
Holds
When passed to AddLine, the line is stored and participates in intersection resolution like any other.
LineCanvas has AddLine
Holds
<xref:Terminal.Gui.Drawing.LineStyle.None> has no special handling inside <xref:Terminal.Gui.Drawing.LineCanvas>.
LineStyle has None
Holds
This calls <xref:Terminal.Gui.Drawing.StraightLineExtensions.Exclude*> to split and remove overlapping lines.
StraightLineExtensions has Exclude
Holds
<xref:Terminal.Gui.Drawing.LineCanvas.Exclude*> suppresses resolved cells from GetCellMap output without affecting the underlying geometry.
LineCanvas has Exclude
Holds
<xref:Terminal.Gui.Drawing.LineCanvas.Reserve*> marks positions as intentionally empty for multi-canvas compositing.
LineCanvas has Reserve
Holds
The <xref:Terminal.Gui.ViewBase.AdornmentImpl> class uses <xref:Terminal.Gui.Drawing.Thickness> to support drawing the frame around a view.
AdornmentImpl depends on Thickness
Holds
The Thickness class contains properties for the left, top, right, and bottom thickness.
4 rules from this sentence
Thickness has Left
Holds
Thickness has Top
Holds
Thickness has Right
Holds
Thickness has Bottom
Holds
The ViewDiagnosticFlags.DrawIndicator flag can be set on View.Diagnostics to cause an animated glyph to appear in the <xref:Terminal.Gui.ViewBase.Border> of each View.
2 rules from this sentence
ViewDiagnosticFlags has DrawIndicator
Holds
View has Diagnostics
Holds
The glyph will animate each time that View's Draw method is called where either <xref:Terminal.Gui.ViewBase.View.NeedsDraw> or SubViewNeedsDraw is set.
3 rules from this sentence
View has a Draw method
Holds
View has NeedsDraw
Holds
View has SubViewNeedsDraw
Holds
Views can access application-level drawing functionality through View.App:
View has App
Holds
<xref:Terminal.Gui.ViewBase.View>'s Move(col, row) for positioning
View has a Move method
Holds
<xref:Terminal.Gui.ViewBase.View>'s AddRune() and AddStr() for drawing
2 rules from this sentence
View has an AddRune method
Holds
View has an AddStr method
Holds
Extensibility - custom drivers can be registered via DriverRegistry.Register()
AppModel - Whether the driver operates in FullScreen or Inline mode
IDriver has AppModel
Holds
InlinePosition - The terminal cursor position (Point) where the inline region starts.
IDriver has InlinePosition
Holds
The ANSI driver's terminal-size detection strategy is controlled by Driver.SizeDetection (<xref:Terminal.Gui.Configuration.DriverSettings>.SizeDetection):
Driver has SizeDetection
Holds
In inline mode, OutputBufferImpl.InlineMode = true causes ClearContents() to initialize cells with IsDirty = false.
2 rules from this sentence
OutputBufferImpl has InlineMode
Holds
OutputBufferImpl has a ClearContents method
Holds
SetCursorPositionImpl adds App.Screen.Y to all row coordinates so output lands at the correct terminal rows.
AnsiOutput has SetCursorPositionImpl
Holds
When IOutput.UseKittyGraphics is true and IDriver.KittyGraphicsSupport.IsSupported is true, output emits Kitty graphics.
2 rules from this sentence
IOutput has UseKittyGraphics
Holds
IDriver has KittyGraphicsSupport
Holds
Otherwise, when IDriver.SixelSupport.IsSupported is true, output emits Sixel.
IDriver has SixelSupport
Holds
DriverImpl.SetKittyGraphicsSupport() enables IOutput.UseKittyGraphics when Kitty support is detected.
DriverImpl has a SetKittyGraphicsSupport method
Holds
Drivers implement cursor control through IDriver which delegates to IOutput:
IDriver depends on IOutput
Holds
SetCursor(Cursor cursor) - Set cursor position and style atomically
IDriver has a SetCursor method
Holds
GetCursor() - Get current cursor state
IDriver has a GetCursor method
Holds
SetCursorNeedsUpdate(bool) / GetCursorNeedsUpdate() - Optimization flag for cursor updates
2 rules from this sentence
IDriver has a SetCursorNeedsUpdate method
Holds
IDriver has a GetCursorNeedsUpdate method
Holds
views use the <xref:Terminal.Gui.ViewBase.View>'s Cursor property.
View has Cursor
Holds
KeyDown - Raised for key press and repeat events
IDriver has KeyDown
Holds
KeyUp - Raised for key release events (only when the driver supports it — currently the ANSI driver with kitty keyboard protocol)
IDriver has KeyUp
Holds
MouseEvent - Raised for mouse input events
IDriver has MouseEvent
Holds
Event type reporting (flag 2) — press, repeat, and release events via Key.EventType
Key has EventType
Holds
Standalone modifier key events — pressing Shift, Ctrl, Alt alone generates events with Key.IsModifierOnly == true and Key.ModifierKey identifying the specific modifier (e.g. ModifierKey.LeftShift)
2 rules from this sentence
Key has IsModifierOnly
Holds
Key has ModifierKey
Holds
Use <xref:Terminal.Gui.App.Application>'s Screen to get screen dimensions
Application has Screen
Holds
The driver selection logic in ApplicationImpl.Driver.cs uses the Driver Registry to select and instantiate drivers:
ApplicationImpl depends on DriverRegistry
Holds
Type ValueChangingEventArgs<T>, Use Case Pre-property-change, Key Properties CurrentValue , NewValue , Handled
3 rules from this sentence
ValueChangingEventArgs has CurrentValue
Holds
ValueChangingEventArgs has NewValue
Holds
ValueChangingEventArgs has Handled
Holds
Type ValueChangedEventArgs<T>, Use Case Post-property-change, Key Properties OldValue , NewValue
2 rules from this sentence
ValueChangedEventArgs has OldValue
Holds
ValueChangedEventArgs has NewValue
Holds
Type <xref:Terminal.Gui.Input.CommandEventArgs>, Use Case Command execution, Key Properties Context , Handled
CommandEventArgs has Context
Holds
Use WithCommand(), WithRouting(), or WithValue() to create modified copies.
3 rules from this sentence
CommandContext has a WithCommand method
Holds
CommandContext has a WithRouting method
Holds
CommandContext has a WithValue method
Holds
Values — An append-only chain of values accumulated as the command propagates up the view hierarchy.
ICommandContext has Values
Holds
Value — Convenience accessor for Values[^1] (the most recently appended value), or null if Values is empty.
ICommandContext has Value
Holds
Property ICommandContext.Source, Description WeakReference<View> to the view that first invoked the command, Changes During Propagation No (constant)
ICommandContext has Source
Holds
Property ICommandContext.Routing, Description <xref:Terminal.Gui.Input.CommandRouting> enum Direct , BubblingUp , DispatchingDown , Bridged, Changes During Propagation Yes (changes at each hop)
ICommandContext has Routing
Holds
Property ICommandBinding.Source, Description View where binding was defined, Changes During Propagation No (constant)
ICommandBinding has Source
Holds
View <xref:Terminal.Gui.Views.CheckBox>, Value Type CheckState, Meaning Current checked state (Unchecked, Checked, CheckedMark)
CheckBox implements IValue
Holds
View <xref:Terminal.Gui.Views.TextField>, Value Type string, Meaning Text content
TextField implements IValue
Holds
View DateEditor, Value Type DateTime, Meaning Selected date
DateEditor implements IValue
Holds
Many Views have legacy properties (e.g., TextField.Text, CheckBox.CheckedState) that predate the IValue<T> interface.
TextField has Text
Holds
Location:Terminal.Gui/Time/ITimeProvider.cs
ITimeProvider is in Terminal.Gui.Time
Holds
If the key is not bound, or the bound command handlers do not return true, OnKeyDownNotHandled() is called.
View has an OnKeyDownNotHandled method
Holds
The Command enum lists generic operations that are implemented by views.
Command is an enumeration
Holds
For example, Application.GetDefaultKey (Command.Quit), which is bound to Command.Quit in Application.DefaultKeyBindings and results in <xref:Terminal.Gui.App.Application.RequestStop(Terminal.Gui.App.IRunnable)> being called.
2 rules from this sentence
Application has a GetDefaultKey method
Holds
Application has DefaultKeyBindings
Holds
Use Application.Keyboard.KeyBindings to add or modify Application-scoped Key Bindings.
2 rules from this sentence
Application has Keyboard
Holds
ApplicationKeyboard has KeyBindings
Holds
For backward compatibility, Application.KeyBindings also provides access to the same key bindings.
Application has KeyBindings
Holds
The most common use-case for HotKey bindings is <xref:Terminal.Gui.ViewBase.View.HotKey>.
View has HotKey
Holds
A Shortcut is an opinionated (visually & API) <xref:Terminal.Gui.ViewBase.View> for displaying a command, help text, key key press that invokes a Command.
Shortcut extends View
Holds
The driver raises IDriver.KeyDown for press/repeat events and IDriver.KeyUp for release events.
2 rules from this sentence
IDriver has KeyDown
Holds
IDriver has KeyUp
Holds
<xref:Terminal.Gui.App.Application.RaiseKeyDownEvent(Terminal.Gui.Input.Key)> raises Application.KeyDown and then calls NewKeyDownEvent() on all runnable <xref:Terminal.Gui.ViewBase.View>s.
3 rules from this sentence
Application has a RaiseKeyDownEvent method
Holds
Application has KeyDown
Holds
View has a NewKeyDownEvent method
Holds
Application.Keyboard.KeyUp fires for key release events.
ApplicationKeyboard has KeyUp
Holds
It routes through the focused view hierarchy via View.NewKeyUpEvent() → View.OnKeyUp() → View.KeyUp.
3 rules from this sentence
View has a NewKeyUpEvent method
Holds
View has an OnKeyUp method
Holds
View has KeyUp
Holds
Both events carry a <xref:Terminal.Gui.Input.Key> whose EventType property indicates Press, Repeat, or Release.
Key has EventType
Holds
The protocol defines progressive enhancement flags, represented by the <xref:Terminal.Gui.Drivers.KittyKeyboardFlags> enum:
KittyKeyboardFlags is an enumeration
Holds
Flag DisambiguateEscapeCodes, Value 1, Description Encodes keys unambiguously as CSI u sequences instead of legacy escape sequences
KittyKeyboardFlags has DisambiguateEscapeCodes
Holds
Flag ReportEventTypes, Value 2, Description Reports press, repeat, and release events Enables KeyUp and repeat KeyDown events
KittyKeyboardFlags has ReportEventTypes
Holds
Flag ReportAlternateKeys, Value 4, Description Reports shifted and base-layout key codes alongside the primary key code
KittyKeyboardFlags has ReportAlternateKeys
Holds
Flag ReportAllKeysAsEscapeCodes, Value 8, Description Reports standalone modifier key events (e.g pressing Shift alone)
KittyKeyboardFlags has ReportAllKeysAsEscapeCodes
Holds
If supported, send enable flags (CSI > 1 u form via EscSeqUtils.CSI_EnableKittyKeyboardFlags).
EscSeqUtils has CSI_EnableKittyKeyboardFlags
Holds
Store the confirmed flags in IDriver.KittyKeyboardCapabilities.Flags.
IDriver has KittyKeyboardCapabilities
Holds
View.DefaultKeyBindings - Shared base bindings for all views, covering navigation (cursor keys, Home, End), clipboard (Copy, Cut, Paste), and editing (Undo, Redo, Delete).
View has DefaultKeyBindings
Holds
For example, TextField.DefaultKeyBindings adds Emacs-style navigation (Ctrl+B, Ctrl+F), word movement (Ctrl+CursorLeft), and kill commands (Ctrl+K).
TextField has DefaultKeyBindings
Holds
View.ViewKeyBindings is applied last (highest priority) after View.DefaultKeyBindings and per-view DefaultKeyBindings.
View has ViewKeyBindings
Holds
For debugging keyboard event flow, use the Trace class from the Terminal.Gui.Tracing namespace:
Trace is in Terminal.Gui.Tracing
Holds
When enabled, keyboard events are logged via Logging.Trace showing the flow from Driver → Application → View.
Logging has Trace
Holds
Component <xref:Terminal.Gui.Views.MenuItem>, Description A <xref:Terminal.Gui.Views.Shortcut>-derived item for use in menus, supports submenus
MenuItem extends Shortcut
Holds
Component <xref:Terminal.Gui.Views.Menu>, Description A vertically-oriented <xref:Terminal.Gui.Views.Bar> that contains <xref:Terminal.Gui.Views.MenuItem> items
Menu depends on MenuItem
Holds
Component <xref:Terminal.Gui.Views.MenuBarItem>, Description A <xref:Terminal.Gui.Views.MenuItem> that holds a <xref:Terminal.Gui.Views.PopoverMenu> instead of a SubMenu
2 rules from this sentence
MenuBarItem extends MenuItem
Holds
MenuBarItem depends on PopoverMenu
Holds
Component <xref:Terminal.Gui.Views.MenuBar>, Description A horizontal <xref:Terminal.Gui.Views.Menu> that contains <xref:Terminal.Gui.Views.MenuBarItem> items
2 rules from this sentence
MenuBar extends Menu
Holds
MenuBar depends on MenuBarItem
Holds
Component <xref:Terminal.Gui.Views.PopoverMenu>, Description A Popover<Menu, MenuItem> -derived view that hosts cascading menus
PopoverMenu extends Popover
Holds
<xref:Terminal.Gui.Views.MenuBarItem> extends <xref:Terminal.Gui.Views.MenuItem> but replaces SubMenu with <xref:Terminal.Gui.Views.PopoverMenu>
MenuBarItem has PopoverMenu
Holds
<xref:Terminal.Gui.Views.StatusBar> is a horizontal <xref:Terminal.Gui.Views.Bar> specialized for <xref:Terminal.Gui.Views.Shortcut> items
StatusBar depends on Shortcut
Holds
SubMenu property holds nested <xref:Terminal.Gui.Views.Menu> for cascading menus
2 rules from this sentence
MenuItem has SubMenu
Holds
MenuItem depends on Menu
Holds
TargetView and Command enable command binding to other views
3 rules from this sentence
MenuItem has TargetView
Holds
MenuItem has Command
Holds
MenuItem depends on Command
Holds
When SubMenu is set, a CommandBridge connects the SubMenu back to this MenuItem (bridging <xref:Terminal.Gui.Input.Command.Activate> and <xref:Terminal.Gui.Input.Command.Accept> commands across the non-containment boundary)
MenuItem depends on CommandBridge
Holds
PopoverMenuOpen delegates to PopoverMenu.IsOpen and raises PopoverMenuOpenChanged (relayed from PopoverMenu.IsOpenChanged)
MenuBarItem has PopoverMenuOpen
Holds
Overrides OnActivating to toggle PopoverMenuOpen, with a guard that ignores Bridged commands (which are notifications from PopoverMenu internals, not toggle requests)
MenuBarItem has OnActivating
Holds
Views call AddCommand to declare command support, then use <xref:Terminal.Gui.Input.MouseBindings> to map mouse events to commands:
View has AddCommand
Holds
Recommended pattern - Use <xref:Terminal.Gui.ViewBase.View.Activating> event with command context:
Viewport Coordinates - Relative to view's content area (0,0 = top-left of viewport) - Mouse.Position
Mouse has Position
Holds
Entry:IMouse.RaiseMouseEvent(Mouse mouse)
IMouse has a RaiseMouseEvent method
Holds
Re-show Guard: When a popover is dismissed, ApplicationMouse records the dismissed popover in DismissedByMousePress and wraps the recursive RaiseMouseEvent call with an _isDismissRecursing flag.
2 rules from this sentence
ApplicationMouse has DismissedByMousePress
Holds
ApplicationMouse has _isDismissRecursing
Holds
ApplicationPopover.Show checks this guard and silently returns if the caller is trying to re-show the same popover that was just dismissed.
ApplicationPopover has Show
Holds
Location:Terminal.Gui/ViewBase/View.Mouse.cs
View is in Terminal.Gui.ViewBase
Holds
Entry:View.NewMouseEvent(Mouse mouse)
View has a NewMouseEvent method
Holds
Include the scroll commands in <xref:Terminal.Gui.ViewBase.View.CommandsToBubbleUp>.
View has CommandsToBubbleUp
Holds
Because the child has no handler (AddCommand was not called), DefaultCommandNotBoundHandler runs → <xref:Terminal.Gui.ViewBase.View.TryBubbleUp*> finds the ancestor with the command in CommandsToBubbleUp → invokes it on the ancestor.
View has TryBubbleUp
Holds
This is handled internally by <xref:Terminal.Gui.ViewBase.View.TryBubbleUp*> and <xref:Terminal.Gui.ViewBase.View.CommandWillBubbleToAncestor*>.
View has CommandWillBubbleToAncestor
Holds
For debugging mouse event flow, use the Trace class from the Terminal.Gui.Tracing namespace:
Trace is in Terminal.Gui.Tracing
Holds
When enabled, mouse events are logged via Logging.Trace showing the flow from Driver → Application → View.
Logging has Trace
Holds
Trace.EnabledCategories |= TraceCategory.Mouse;
2 rules from this sentence
Trace has EnabledCategories
Holds
TraceCategory has Mouse
Holds
ApplicationNavigation.GetFocused() gets the most-focused <xref:Terminal.Gui.ViewBase.View> in the application.
ApplicationNavigation has a GetFocused method
Holds
The ApplicationNavigation.FocusedChanged and ApplicationNavigation.FocusedChanging events are raised when the most-focused <xref:Terminal.Gui.ViewBase.View> in the application is changing or has changed.
ApplicationNavigation has FocusedChanged
Holds
The ApplicationNavigation.AdvanceFocus() method causes the focus to advance (forward or backwards) to the next <xref:Terminal.Gui.ViewBase.View> in the application view-hierarchy, using behavior as a filter.
ApplicationNavigation has an AdvanceFocus method
Holds
Each main loop iteration, UpdateCursor() is called to:
ApplicationNavigation has an UpdateCursor method
Holds
Views control their cursor through the View.Cursor property, not through <xref:Terminal.Gui.App.ApplicationNavigation> directly.
View has Cursor
Holds
For example, <xref:Terminal.Gui.ViewBase.View.HasFocusChanging> and <xref:Terminal.Gui.ViewBase.View.HasFocusChanged>.
2 rules from this sentence
View has HasFocusChanging
Holds
View has HasFocusChanged
Holds
For visible and enabled Views, the <xref:Terminal.Gui.ViewBase.View.CanFocus> property is then used to determine whether the <xref:Terminal.Gui.ViewBase.View> is focusable.
View has CanFocus
Holds
Of course, the view itself or some other code can cancel the focus (e.g. by overriding OnHasFocusChanging).
View has OnHasFocusChanging
HoldsPR #4268 · Sep 30
A visible, enabled, and CanFocus == true view can be focused if the user uses the mouse to clicks on it or if code explicitly calls SetFocus().
View has a SetFocus method
Holds
For keyboard navigation, the <xref:Terminal.Gui.ViewBase.View.TabStop> property is a filter for which views are focusable from the current most-focused.
View has TabStop
Holds
<xref:Terminal.Gui.ViewBase.View.CanFocus> = true
View has HasFocus
Holds
The private bool _hasFocus field backs <xref:Terminal.Gui.ViewBase.View.HasFocus> and is the ultimate source of truth whether a <xref:Terminal.Gui.ViewBase.View> has focus or not.
View has a _hasFocus field
Holds
Application.Create() returns an <xref:Terminal.Gui.App.IApplication> instance
2 rules from this sentence
Application depends on IApplication
Holds
Application has a Create method
Holds
Every view has an <xref:Terminal.Gui.ViewBase.View.App> property referencing its <xref:Terminal.Gui.App.IApplication> context
2 rules from this sentence
View depends on IApplication
Holds
View has App
Holds
<xref:Terminal.Gui.App.IApplication.SessionStack> tracks all running sessions as a stack
IApplication has SessionStack
Holds
<xref:Terminal.Gui.App.IApplication.TopRunnable> property references the currently active session
IApplication has TopRunnable
Holds
Begin() and End() methods manage session lifecycle
2 rules from this sentence
IApplication has a Begin method
Holds
IApplication has an End method
Holds
Init() - Returns <xref:Terminal.Gui.App.IApplication> for chaining
IApplication has an Init method
Holds
Run<TRunnable>() - Creates and runs runnable, returns <xref:Terminal.Gui.App.IApplication>
IApplication has Run
Holds
GetResult<T>() - Extract typed result after run
IApplication has GetResult
Holds
IDriver.SupportsTrueColor detection
IDriver has SupportsTrueColor
Holds
Used by Border, Line, and custom views
Line depends on LineCanvas
Holds
Application.Run manages Runnable lifecycle
Application has Run
Holds
GetContentSize - Returns total content size
View has GetContentSize
Holds
SetContentSize - Sets scrollable content size
View has SetContentSize
Holds
ScrollVertical/ScrollHorizontal - Helper methods
2 rules from this sentence
View has a ScrollVertical method
Holds
View has a ScrollHorizontal method
Holds
View.Arrangement enables interactive UI:
View has Arrangement
Holds
ViewArrangement.Movable - Drag with mouse or move with keyboard
ViewArrangement has Movable
Holds
ViewArrangement.Resizable - Resize edges with mouse or keyboard
ViewArrangement has Resizable
Holds
ViewArrangement.Overlapped - Z-order management for overlapping views
ViewArrangement has Overlapped
Holds
CanFocus - Whether view can receive focus (defaults to false in v2)
Views declare supported commands via View.AddCommand
View has AddCommand
Holds
View.MouseHighlightStates - Allows views to provide visual feedback on hover/click.
View has MouseHighlightStates
Holds
View.MouseState - Indicates whether the mouse is pressed, hovered, or outside.
View has MouseState
Holds
View.MouseHoldRepeat - Enables or disables whether mouse click events will be repeated when the user holds the mouse down
View has MouseHoldRepeat
Holds
Theme management (IThemeManager.SwitchTheme)
IThemeManager has SwitchTheme
Holds
Logging.Meter provides performance metrics:
Logging has Meter
Holds
The IPopoverView interface defines the popover contract: visibility, enabled state, anchor positioning, target reference, and MakeVisible method.
2 rules from this sentence
IPopoverView is a contract
Holds
IPopoverView has a MakeVisible method
Holds
Popover<TView, TResult> extends PopoverImpl to host a typed content view and optionally extract a result when the popover closes.
Popover extends PopoverImpl
Holds
Result extraction — Via ResultExtractor function or automatic IValue<TResult> extraction
Popover has ResultExtractor
Holds
Anchor — Function-based positioning anchor for MakeVisible / SetPosition
3 rules from this sentence
Popover has Anchor
Holds
Popover has a MakeVisible method
Holds
Popover has a SetPosition method
Holds
<xref:Terminal.Gui.Views.PopoverMenu> extends Popover<Menu, MenuItem> and is a sophisticated cascading menu implementation used for:
PopoverMenu extends Popover
Holds
When a popover is dismissed by a mouse press outside its SubViews, ApplicationMouse.RaiseMouseEvent recurses so the click event can reach views beneath the popover.
ApplicationMouse has RaiseMouseEvent
Holds
To prevent this, ApplicationMouse records which popover was just dismissed (DismissedByMousePress) and ApplicationPopover.Show checks this guard — silently returning if the caller is trying to re-show the same popover.
ApplicationMouse has DismissedByMousePress
Holds
ApplicationMouse.ResetState is called
ApplicationMouse has ResetState
Holds
TableView implements IValue<TableSelection?> to expose the complete selection state as a single value.
TableView implements IValue
Holds
Type TableSelection, Description Immutable snapshot SelectedCell (a Point ) + Regions (an IReadOnlyList<TableSelectionRegion> )
2 rules from this sentence
TableSelection has SelectedCell
Holds
TableSelection has Regions
Holds
Type TableSelectionRegion, Description A contiguous rectangular selection Has Origin , Rectangle , and IsExtended
3 rules from this sentence
TableSelectionRegion has Origin
Holds
TableSelectionRegion has Rectangle
Holds
TableSelectionRegion has IsExtended
Holds
Move the cursor programmatically with SetSelection (col, row, extend).
TableView has a SetSelection method
Holds
All cells in the cursor's row are reported as selected by GetAllSelectedCells () and IsSelected ().
2 rules from this sentence
TableView has a GetAllSelectedCells method
Holds
TableView has an IsSelected method
Holds
Override DefaultKeyBindings (static) or instance-level bindings.
TableView has DefaultKeyBindings
Holds
TableView uses the standard KeyBindings and MouseBindings infrastructure.
TableView depends on MouseBindings
Holds
Horizontal and vertical scrolling is handled via ColumnOffset and RowOffset (backed by Viewport).
2 rules from this sentence
TableView has ColumnOffset
Holds
TableView has RowOffset
Holds
Columns — rendered from ColumnOffset right, each column sized by content width (clamped by MinCellWidth / MaxCellWidth and per-column ColumnStyle)
2 rules from this sentence
TableView has MinCellWidth
Holds
TableView has MaxCellWidth
Holds
Property ShowHeaders, Default true, Description Show column header row
TableStyle has ShowHeaders
Holds
Property ShowHorizontalHeaderOverline, Default true, Description Line above headers
TableStyle has ShowHorizontalHeaderOverline
Holds
Property ShowHorizontalHeaderUnderline, Default true, Description Line below headers
TableStyle has ShowHorizontalHeaderUnderline
Holds
Property ShowVerticalCellLines, Default true, Description Vertical separators between cells
TableStyle has ShowVerticalCellLines
Holds
Property ShowVerticalHeaderLines, Default true, Description Vertical separators between headers
TableStyle has ShowVerticalHeaderLines
Holds
Property ShowHorizontalBottomLine, Default false, Description Line below last row
TableStyle has ShowHorizontalBottomLine
Holds
Property AlwaysShowHeaders, Default false, Description Lock headers when scrolling
TableStyle has AlwaysShowHeaders
Holds
Property ExpandLastColumn, Default true, Description Fill remaining space with last column
Property Format, Description IFormattable.ToString format string
ColumnStyle has Format
Holds
Property MaxWidth, Description Maximum column width in characters
ColumnStyle has MaxWidth
Holds
Property MinWidth, Description Minimum column width in characters
ColumnStyle has MinWidth
Holds
Property MinAcceptableWidth, Description Flexible lower bound for column width
ColumnStyle has MinAcceptableWidth
Holds
Property Visible, Description Hide the column entirely
ColumnStyle has Visible
Holds
TreeTableSource<T> combines TreeView<T> expand/collapse with TableView column rendering:
2 rules from this sentence
TreeTableSource depends on TreeView
Holds
TreeTableSource depends on TableView
Holds
<xref:Terminal.Gui.ViewBase.View.HasFocus> - Whether the View currently has focus
View has HasFocus
Holds
Each View has a SuperView property that references its container
View has SuperView
Holds
Call SetContentSize() with a size larger than the Viewport
View has a SetContentSize method
Holds
Padding - Spacing inside the Border, outside the Viewport Each adornment has a Thickness that defines the width of each side (Top, Right, Bottom, Left).
3 rules from this sentence
Margin has Thickness
Holds
Border has Thickness
Holds
Padding has Thickness
Holds
BeginInit() - Signals initialization is starting
View has a BeginInit method
Holds
EndInit() - Signals initialization is complete;
View has an EndInit method
Holds
IsInitialized - Property indicating if initialization is complete
View has IsInitialized
Holds
During initialization, App is set to reference the application context, enabling views to access application services like the driver and current session.
View has App
Holds
Call Dispose() to clean up resources
View has a Dispose method
Holds
<xref:Terminal.Gui.Input.KeyBindings> - Maps keys to Commands
View has KeyBindings
Holds
<xref:Terminal.Gui.ViewBase.View.HotKey> - The hot key for the View
View has HotKey
Holds
HotKeySpecifier - Character used to denote hot keys in text (default: '_')
View has HotKeySpecifier
Holds
<xref:Terminal.Gui.Input.MouseBindings> - Maps mouse events to Commands
Arrangement - Controls if View is movable/resizable
View has Arrangement
Holds
View.SetAttribute - Sets the attribute for subsequent drawing
View has SetAttribute
Holds
View.SetAttributeForRole - Sets attribute based on VisualRole
View has SetAttributeForRole
Holds
View.Draw - Main drawing method
View has a Draw method
Holds
View.AddRune - Draws a single Rune
View has AddRune
Holds
View.AddStr - Draws a string
View has AddStr
Holds
View.Move - Positions the Draw Cursor (internal rendering position, NOT the visible Terminal Cursor)
View has Move
Holds
To position the Terminal Cursor, use the View.Cursor property.
View has Cursor
Holds
View.SetNeedsDraw - Marks View as needing redraw
View has SetNeedsDraw
Holds
View.NeedsDraw - Property indicating if View needs redraw
View has NeedsDraw
Holds
<xref:Terminal.Gui.ViewBase.View.CanFocus> - Whether the View can receive keyboard focus
View has CanFocus
Holds
<xref:Terminal.Gui.ViewBase.View.TabStop> - TabBehavior for tab navigation
View has TabStop
Holds
View.SetFocus - Gives focus to the View
View has SetFocus
Holds
View.OnKeyDown virtual method
View has an OnKeyDown method
Holds
Command handlers (registered via View.AddCommand)
View has AddCommand
Holds
View.OnMouseEvent virtual method
View has an OnMouseEvent method
Holds
View.AdvanceFocus - Moves focus to next/previous View
View has AdvanceFocus
Holds
View.Diagnostics - ViewDiagnosticFlags for debugging:
View has Diagnostics
Holds
Enabled - Whether the View is enabled
View has Enabled
Holds
Visible - Whether the View is visible
View has Visible
Holds
They are configured via <xref:Terminal.Gui.ViewBase.View.ShadowStyle>:
View has ShadowStyle
Holds
The base-class for <xref:Terminal.Gui.Views.OpenDialog> and <xref:Terminal.Gui.Views.SaveDialog>
2 rules from this sentence
OpenDialog extends FileDialog
Holds
SaveDialog extends FileDialog
Holds
Abstract base for linear range views (<xref:Terminal.Gui.Views.LinearSelector%601>, <xref:Terminal.Gui.Views.LinearMultiSelector%601>, <xref:Terminal.Gui.Views.LinearRange%601>) that present a list of typed options navigable by keyboard or mouse, and expose the current selection as a strongly-typed value via <xref:Terminal.Gui.ViewBase.IValue%601>.
3 rules from this sentence
LinearSelector extends LinearRangeViewBase
Holds
LinearMultiSelector extends LinearRangeViewBase
Holds
LinearRange extends LinearRangeViewBase
Holds
A read-only view that renders a single Markdown table with box-drawing borders via <xref:Terminal.Gui.Drawing.LineCanvas> and styled header/body text with inline Markdown formatting.
MarkdownTable depends on LineCanvas
Holds
A vertically-oriented <xref:Terminal.Gui.Views.Bar> that contains <xref:Terminal.Gui.Views.MenuItem> items, supporting cascading sub-menus, selection tracking, and the <xref:Terminal.Gui.ViewBase.IValue%601> pattern.
Menu depends on MenuItem
Holds
A horizontal <xref:Terminal.Gui.Views.Menu> that contains <xref:Terminal.Gui.Views.MenuBarItem> items.
MenuBar depends on MenuBarItem
Holds
A <xref:Terminal.Gui.Views.MenuItem>-derived item for use in a <xref:Terminal.Gui.Views.MenuBar>.
MenuBarItem extends MenuItem
Holds
A <xref:Terminal.Gui.Views.Shortcut>-derived item for use in a <xref:Terminal.Gui.Views.Menu>.
MenuItem extends Shortcut
Holds
A <xref:Terminal.Gui.App.IPopover>-derived view that provides a cascading menu.
PopoverMenu implements IPopover
Holds
A dialog that wraps any <xref:Terminal.Gui.ViewBase.View> with Ok/Cancel buttons, extracting a typed result when the user accepts.
Prompt depends on View
Holds
Base implementation of <xref:Terminal.Gui.App.IRunnable> for views that can be run as blocking sessions without returning a result.
Runnable implements IRunnable
Holds
Wraps any <xref:Terminal.Gui.ViewBase.View> to make it runnable with a typed result without adding dialog buttons.
RunnableWrapper depends on View
Holds
Between the buttons is a <xref:Terminal.Gui.Views.ScrollSlider> that can be dragged to control the position of the visible content.
ScrollBar depends on ScrollSlider
Holds
A <xref:Terminal.Gui.Views.Button> used to scroll content forward or backward.
ScrollButton extends Button
Holds
The button displays an arrow glyph determined by the combination of <xref:Terminal.Gui.Views.ScrollButton.Direction> and <xref:Terminal.Gui.Views.ScrollButton.Orientation>:
2 rules from this sentence
ScrollButton has Direction
Holds
ScrollButton has Orientation
Holds
The abstract base class for <xref:Terminal.Gui.Views.OptionSelector%601> and <xref:Terminal.Gui.Views.FlagSelector%601>.
2 rules from this sentence
OptionSelector extends SelectorBase
Holds
FlagSelector extends SelectorBase
Holds
A status bar is a <xref:Terminal.Gui.ViewBase.View> that snaps to the bottom of the Viewport displaying set of <xref:Terminal.Gui.Views.Shortcut>s.
StatusBar depends on Shortcut
Holds
Displays and enables infinite scrolling through tabular data based on a <xref:Terminal.Gui.Views.ITableSource>.
TableView depends on ITableSource
Holds
A tabbed container <xref:Terminal.Gui.ViewBase.View> that renders each SubView as a selectable tab with a header drawn by <xref:Terminal.Gui.ViewBase.Border>.
Tabs depends on Border
Holds
Masked text editor that validates input through a <xref:Terminal.Gui.Views.ITextValidateProvider>.
TextValidateField depends on ITextValidateProvider
Holds
Provides time editing functionality using <xref:Terminal.Gui.Views.TextValidateField> with culture-aware formatting.
TimeEditor depends on TextValidateField
Holds
Branch objects are dynamically determined when expanded using a user defined <xref:Terminal.Gui.Views.ITreeBuilder%601>.
TreeView depends on ITreeBuilder
Holds
Can contain arbitrary <xref:Terminal.Gui.ViewBase.View>s and display help text in the right <xref:Terminal.Gui.ViewBase.Padding>.