Copilot cb748a1c09 Fix InvokeLeakTest debugger failure on x64 with high-resolution timing (#4304)
* Initial plan

* Add comprehensive analysis of InvokeLeakTest debugger failure

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Add XML documentation to InvokeLeakTest about debugger issues

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Add visual timing diagrams for InvokeLeakTest analysis

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Add executive summary of InvokeLeakTest investigation

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Update analysis with x64 vs ARM confirmation from @tig

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Implement Stopwatch-based timing in TimedEvents to fix x64 race condition

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Update documentation to reflect fix implementation

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Fix test issues and increase TimeSpan.Zero buffer for debugger safety

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Add MainLoop.Wakeup() call in Invoke and remove problematic test

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Auto-detect debugger and increase test timeout to 500ms

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Remove unnecessary MainLoop.Wakeup() call for v2 drivers

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Move analysis documents to Tests/StressTests folder

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Add test coverage for multiple drivers per @BDisp's suggestion

Co-authored-by: tig <585482+tig@users.noreply.github.com>

* Revert multi-driver test coverage changes per @tig request

Co-authored-by: tig <585482+tig@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tig <585482+tig@users.noreply.github.com>
2025-10-21 19:41:03 -06:00
2025-03-06 12:48:44 -07:00
2024-06-25 05:53:19 -07:00
2025-06-12 13:45:39 -06:00
2025-06-12 12:16:54 -06:00
Add
2018-01-05 22:11:08 -05:00
2025-05-31 19:25:30 -06:00
2025-05-31 19:25:30 -06:00

.NET Core Version Code Coverage Downloads License Bugs

Terminal.Gui v2

The premier toolkit for building rich console apps for Windows, the Mac, and Linux/Unix.

logo

  • The current, stable, release of Terminal.Gui v1 is Version.

⚠️ Note:
v1 is in maintenance mode and we will only accept PRs for issues impacting existing functionality.

  • The current Alpha release of Terminal.Gui v2 is NuGet Version

⚠️ Note:
Developers starting new TUI projects are encouraged to target v2 Alpha. The API is significantly changed, and significantly improved. There will be breaking changes in the API before Beta, but the core API is stable.

Sample app

Quick Start

Paste these commands into your favorite terminal on Windows, Mac, or Linux. This will install the Terminal.Gui.Templates, create a new "Hello World" TUI app, and run it.

(Press CTRL-Q to exit the app)

dotnet new --install Terminal.Gui.templates
dotnet new tui -n myproj
cd myproj
dotnet run

To run the UICatalog demo app that shows all the controls and features of the toolkit, use the following command:

dotnet run --project Examples/UICatalog/UICatalog.csproj

There is also a visual designer (uses Terminal.Gui itself).

Documentation

The full developer documentation for Terminal.Gui is available at gui-cs.github.io/Terminal.Gui.

Getting Started

API Reference

For detailed API documentation, see the API Reference.

Installing

Use NuGet to install the Terminal.Gui NuGet package:

v2 Alpha

(Infrequently updated, but stable enough for production use)

dotnet add package Terminal.Gui --version "2.0.0-alpha.*"

v2 Develop

(Frequently updated, but may have breaking changes)

dotnet add package Terminal.Gui --version "2.0.0-develop.*"

Legacy v1

dotnet add package Terminal.Gui --version "1.*

Or, you can use the Terminal.Gui.Templates.

Contributing

See CONTRIBUTING.md.

Debates on architecture and design can be found in Issues tagged with design.

History

See gui-cs for how this project came to be.

Languages
C# 99.4%
PowerShell 0.6%