Skip to content

Commit 53ca729

Browse files
committed
Merge branch 'v2_release' of tig:gui-cs/Terminal.Gui into v2_release
2 parents 4e0e94c + d2b06f1 commit 53ca729

773 files changed

Lines changed: 44845 additions & 45796 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursorrules

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Terminal.Gui - Cursor AI Rules
2+
3+
> **📘 Source of Truth: [CONTRIBUTING.md](CONTRIBUTING.md)**
4+
5+
This project uses [CONTRIBUTING.md](CONTRIBUTING.md) as the single source of truth for contribution guidelines. AI agents, including CoPilot and Cursor **MUST** follow the guidelines in [CONTRIBUTING.md](CONTRIBUTING.md)/

.editorconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ dotnet_diagnostic.cs0464.severity = warning
8282
dotnet_diagnostic.cs0465.severity = warning
8383
dotnet_diagnostic.cs0469.severity = warning
8484
dotnet_diagnostic.cs0472.severity = warning
85-
dotnet_diagnostic.cs0612.severity = warning
86-
dotnet_diagnostic.cs0618.severity = warning
85+
dotnet_diagnostic.cs0612.severity = none
86+
dotnet_diagnostic.cs0618.severity = none
8787
dotnet_diagnostic.cs0628.severity = warning
8888
dotnet_diagnostic.cs0642.severity = warning
8989
dotnet_diagnostic.cs0649.severity = warning
@@ -94,7 +94,7 @@ dotnet_diagnostic.cs0659.severity = warning
9494
dotnet_diagnostic.cs0660.severity = warning
9595
dotnet_diagnostic.cs0661.severity = warning
9696
dotnet_diagnostic.cs0665.severity = warning
97-
dotnet_diagnostic.cs0672.severity = warning
97+
dotnet_diagnostic.cs0672.severity = none
9898
dotnet_diagnostic.cs0675.severity = warning
9999
dotnet_diagnostic.cs0693.severity = warning
100100
dotnet_diagnostic.cs0728.severity = warning
Lines changed: 123 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,140 @@
11
---
22
name: Bug report
3-
about: Create a report to help us improve
3+
about: Create a report to help us improve Terminal.Gui
44
title: ''
55
labels: bug
66
assignees: ''
77

88
---
99

10-
**Describe the bug**
10+
## Describe the bug
11+
1112
A clear and concise description of what the bug is.
1213

13-
**To Reproduce**
14+
## To Reproduce
15+
1416
Steps to reproduce the behavior:
15-
1. Go to '...'
16-
2. Click on '....'
17-
3. Scroll down to '....'
18-
4. See error
1917

20-
**Expected behavior**
21-
A clear and concise description of what you expected to happen.
18+
1. Run the following code:
19+
```csharp
20+
// Paste your minimal reproduction code here
21+
```
22+
23+
2. Expected behavior: (describe what should happen)
24+
25+
3. Actual behavior: (describe what actually happens)
26+
27+
## Environment
28+
29+
Please run the following commands in your terminal and paste the output:
30+
31+
### OS Information
32+
33+
**Windows (PowerShell):**
34+
```powershell
35+
"OS: $(Get-CimInstance Win32_OperatingSystem | Select-Object -ExpandProperty Caption) $(Get-CimInstance Win32_OperatingSystem | Select-Object -ExpandProperty Version)"
36+
```
37+
38+
**macOS/Linux:**
39+
```bash
40+
echo "OS: $(uname -s) $(uname -r)"
41+
```
42+
43+
**Output:**
44+
```
45+
(paste output here)
46+
```
47+
48+
### Terminal Information
49+
50+
**Windows Terminal:**
51+
```powershell
52+
"Terminal: Windows Terminal $(Get-AppxPackage -Name Microsoft.WindowsTerminal | Select-Object -ExpandProperty Version)"
53+
```
54+
55+
**Other terminals:**
56+
```bash
57+
echo $TERM
58+
```
59+
60+
**Output:**
61+
```
62+
(paste output here)
63+
```
64+
65+
### PowerShell Version
66+
67+
```powershell
68+
$PSVersionTable.PSVersion
69+
```
70+
71+
**Output:**
72+
```
73+
(paste output here)
74+
```
75+
76+
### .NET Information
77+
78+
```bash
79+
dotnet --version
80+
dotnet --info
81+
```
82+
83+
**Output:**
84+
```
85+
(paste output here)
86+
```
87+
88+
### Terminal.Gui Version
89+
90+
**Option 1 - Run UICatalog (easiest):**
91+
92+
UICatalog displays the Terminal.Gui version in its About box and status bar.
93+
94+
```bash
95+
dotnet run --project Examples/UICatalog/UICatalog.csproj
96+
```
97+
98+
**Option 2 - NuGet Package Version:**
99+
```
100+
(e.g., 2.0.0-alpha.1, 2.0.0-develop.123, etc.)
101+
```
102+
103+
**Option 3 - Building from source:**
104+
```bash
105+
git rev-parse HEAD
106+
git describe --tags --always --dirty
107+
```
108+
109+
**Version:**
110+
```
111+
(paste version here)
112+
```
113+
114+
## Screenshots, GIFs, or Terminal Output
115+
116+
If applicable, add screenshots, animated GIFs, or copy/paste terminal output to help explain your problem.
117+
118+
**Animated GIFs are especially helpful for showing behavior!**
119+
120+
- **Windows**: [ShareX](https://getsharex.com/) (free, captures screen to GIF)
121+
- **macOS**: [Kap](https://getkap.co/) (free, open source)
122+
- **Linux**: [Peek](https://github.com/phw/peek) (free)
123+
124+
**For terminal output, use code blocks:**
22125

23-
**Screenshots**
24-
If applicable, add screenshots to help explain your problem.
126+
```
127+
(paste terminal output here)
128+
```
25129

26-
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
130+
## Additional context
30131

31-
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
132+
Add any other context about the problem here, such as:
133+
- Does this happen consistently or intermittently?
134+
- Did this work in a previous version?
135+
- Are there any error messages in the console?
136+
- Terminal configuration or settings that might be relevant?
36137

37-
**Additional context**
38-
Add any other context about the problem here.
138+
## For Maintainers
39139

40-
**Set Project & Milestone**
41-
If you have access, please don't forget to set the right Project and Milestone.
140+
**Set Project & Milestone:** If you have access, please don't forget to set the right Project and Milestone.

.github/copilot-instructions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Terminal.Gui - CoPilot AI Rules
2+
3+
> **📘 Source of Truth: [../CONTRIBUTING.md](../CONTRIBUTING.md)**
4+
5+
This project uses [../CONTRIBUTING.md](../CONTRIBUTING.md) as the single source of truth for contribution guidelines. AI agents, including CoPilot and Cursor **MUST** follow the guidelines in [../CONTRIBUTING.md](CONTRIBUTING.md)/
6+
7+
**CRITICAL** - CoPilot you MUST internalize [../CONTRIBUTING.md](../CONTRIBUTING.md) and follow the guidance for any work you do on Terminal.Gui. This includes Github Copilot in Agent mode.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Ensure that Release Build of Solution Builds Correctly
1+
name: Build Validation
22

33
on:
44
push:
@@ -11,11 +11,14 @@ on:
1111
- '**.md'
1212

1313
jobs:
14-
build_release:
15-
# Ensure that RELEASE builds are not broken
14+
build-validation:
15+
name: Build All Configurations
1616
runs-on: ubuntu-latest
17+
18+
timeout-minutes: 10
1719
steps:
18-
- name: Checkout ${{ github.ref_name }}
20+
21+
- name: Checkout code
1922
uses: actions/checkout@v4
2023

2124
- name: Setup .NET Core
@@ -24,11 +27,19 @@ jobs:
2427
dotnet-version: 8.x
2528
dotnet-quality: 'ga'
2629

30+
- name: Restore dependencies
31+
run: dotnet restore
32+
33+
# Suppress CS0618 (member is obsolete) and CS0612 (member is obsolete without message)
34+
# Using -property: syntax with URL-encoded semicolon (%3B) to avoid shell interpretation issues
35+
- name: Build Debug
36+
run: dotnet build --configuration Debug --no-restore -property:NoWarn=0618%3B0612
37+
2738
- name: Build Release Terminal.Gui
28-
run: dotnet build Terminal.Gui/Terminal.Gui.csproj --no-incremental --nologo --force --configuration Release
39+
run: dotnet build Terminal.Gui/Terminal.Gui.csproj --configuration Release --no-incremental --force -property:NoWarn=0618%3B0612
2940

3041
- name: Pack Release Terminal.Gui
31-
run: dotnet pack Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ./local_packages
42+
run: dotnet pack Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ./local_packages -property:NoWarn=0618%3B0612
3243

3344
- name: Restore AOT and Self-Contained projects
3445
run: |
@@ -40,8 +51,8 @@ jobs:
4051

4152
- name: Build Release AOT and Self-Contained
4253
run: |
43-
dotnet build ./Examples/NativeAot/NativeAot.csproj --configuration Release
44-
dotnet build ./Examples/SelfContained/SelfContained.csproj --configuration Release
54+
dotnet build ./Examples/NativeAot/NativeAot.csproj --configuration Release -property:NoWarn=0618%3B0612
55+
dotnet build ./Examples/SelfContained/SelfContained.csproj --configuration Release -property:NoWarn=0618%3B0612
4556
46-
- name: Build Release Solution without restore
47-
run: dotnet build --configuration Release --no-restore
57+
- name: Build Release Solution
58+
run: dotnet build --configuration Release --no-restore -property:NoWarn=0618%3B0612

0 commit comments

Comments
 (0)