Thank you for your interest in contributing examples!
- One example per directory — each example should be self-contained
- Use NuGet references — reference Terminal.Gui via
<PackageReference Include="Terminal.Gui" />, not ProjectReference - Follow coding conventions — see the
.editorconfigand Terminal.Gui CONTRIBUTING.md - Include a README — explain what the example demonstrates and how to run it
- Keep it focused — each example should demonstrate one concept or integration pattern
- Ensure it builds — run
dotnet buildbefore submitting
- Space before
()and[]:Method (),array [i] - Allman braces (opening brace on next line)
- No
varexcept built-in types (int,string,bool, etc.) - Target-typed new:
Button btn = new () { Text = "OK" }; - Collection expressions:
List<View> views = [view1, view2];
- Fork this repository
- Create a feature branch
- Add your example
- Run
dotnet buildanddotnet format --verify-no-changes - Submit a pull request