Skip to content

Commit

Permalink
Release v1.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tig committed Apr 6, 2023
2 parents 2cb628c + 1096007 commit 443039a
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 534 deletions.
2 changes: 1 addition & 1 deletion Example/Example.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<!-- Version numbers are automatically updated by gitversion when a release is released -->
<!-- In the source tree the version will always be 1.0 for all projects. -->
<!-- Do not modify these. -->
Expand Down
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@
[![License](https://img.shields.io/github/license/gui-cs/gui.cs.svg)](LICENSE)
![Bugs](https://img.shields.io/github/issues/gui-cs/gui.cs/bug)

***The current release of Tmerinal.Gui [(v1.10)](https://www.nuget.org/packages/Terminal.Gui) is stable, rich, and broadly used. The team is now focused on designing and building a significant upgrade we're referring to as `v2`. Therefore, `v1` is now in maintenance mode.***
***The current, stable, release of Terminal.Gui is [v1.x](https://www.nuget.org/packages/Terminal.Gui). It is stable, rich, and broadly used. The team is now focused on designing and building a significant upgrade we're referring to as `v2`. Therefore:***
* *`v1` is now in maintenance mode, meaning we will accept PRs for v1.x (the `develop` branch) only for issues impacting existing functionality.*
* *All new development happens on the `v2_develop` branch. See the V2 discussion [here](https://github.com/gui-cs/Terminal.Gui/discussions/1940).*
* *Developers are encouraged to continue building on [v1.x](https://www.nuget.org/packages/Terminal.Gui) until we announce `v2` is stable.*

***This means we will accept PRs for v1.x (the `develop` branch) only for issues impacting existing functionality. All new development will happen on the `v2_develop` branch. See the V2 discussion [here](https://github.com/gui-cs/Terminal.Gui/discussions/1940).***

***Developers are encouraged to continue building on `v1` until we announce `v2` is stable.***

# Terminal.Gui - Cross Platform Terminal UI toolkit for .NET

A toolkit for building rich console apps for .NET, .NET Core, and Mono that works on Windows, the Mac, and Linux/Unix.
**Terminal.Gui**: A toolkit for building rich console apps for .NET, .NET Core, and Mono that works on Windows, the Mac, and Linux/Unix.

![Sample app](docfx/images/sample.gif)

Expand Down
2 changes: 1 addition & 1 deletion ReactiveExample/ReactiveExample.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<!-- Version numbers are automatically updated by gitversion when a release is released -->
<!-- In the source tree the version will always be 2.0 for all projects. -->
<!-- Do not modify these. -->
Expand Down
2 changes: 2 additions & 0 deletions Terminal.Gui/ConsoleDrivers/CursesDriver/binding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ static public int IsAlt (int key)
#pragma warning disable RCS1102 // Make class static.
internal class Delegates {
#pragma warning restore RCS1102 // Make class static.
#pragma warning disable CS8981 // The type name only contains lower-cased ascii characters. Such names may become reserved for the language.
public delegate IntPtr initscr ();
public delegate int endwin ();
public delegate bool isendwin ();
Expand Down Expand Up @@ -555,4 +556,5 @@ public NativeMethods (UnmanagedLibrary lib)
}
}
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
#pragma warning restore CS8981 // The type name only contains lower-cased ascii characters. Such names may become reserved for the language.
}
19 changes: 12 additions & 7 deletions Terminal.Gui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ Doing so will update the `.csproj` files in your branch with version info, which

## Publishing a Release of Terminal.Gui

First, use the [Semantic Versioning](https://semver.org/) rules.to determine the new verison number.

Given a version number MAJOR.MINOR.PATCH, increment the:

* MAJOR version when you make incompatible API changes
* MINOR version when you add functionality in a backwards compatible manner
* PATCH version when you make backwards compatible bug fixes

Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

To release a new version (e.g. with a higher `major`, `minor`, or `patch` value) tag a commit using `git tag` and then push that tag directly to the `main` branch on `github.com/gui-cs/Terminal.Gui` (`upstream`).

The `tag` must be of the form `v<major>.<minor>.<patch>`, e.g. `v2.3.4`.
Expand All @@ -67,7 +77,7 @@ The PR title should be of the form "Release v2.3.4"
```powershell
git checkout develop
git pull upstream develop
git checkout -b v_2_3_4
git checkout -b v2_3_4
git add .
git commit -m "Release v2.3.4"
git push
Expand Down Expand Up @@ -117,13 +127,8 @@ https://www.nuget.org/packages/Terminal.Gui

### 10) Add a new Release in Github: https://github.com/gui-cs/Terminal.Gui/releases

Generate release notes with the list of PRs since the last release
Generate release notes with the list of PRs since the last release.

Use `gh` to get a list with just titles to make it easy to paste into release notes:

```powershell
gh pr list --limit 500 --search "is:pr is:closed is:merged closed:>=2021-05-18"
```
### 11) Update the `develop` branch with the new version

```powershell
Expand Down
2 changes: 1 addition & 1 deletion Terminal.Gui/Views/TextView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ internal static int CalculateLeftColumn (List<Rune> t, int start, int end, int w
pos = new Point (col, i);
col += (textToReplace.Length - matchText.Length);
}
if (col + 1 > txt.Length) {
if (col < 0 || col + 1 > txt.Length) {
break;
}
col = txt.IndexOf (matchText, col + 1);
Expand Down
2 changes: 1 addition & 1 deletion Terminal.Gui/Windows/FileDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ public SaveDialog () : this (title: string.Empty, message: string.Empty) { }
/// <param name="message">The message.</param>
/// <param name="allowedTypes">The allowed types.</param>
public SaveDialog (ustring title, ustring message, List<string> allowedTypes = null)
: base (title, prompt: Strings.fdSave, nameFieldLabel: $"{Strings.fdSaveAs}:", message: message, allowedTypes) { }
: base (title, prompt: Strings.fdSave, nameFieldLabel: $"{Strings.fdSaveAs}", message: message, allowedTypes) { }

/// <summary>
/// Gets the name of the file the user selected for saving, or null
Expand Down
Loading

0 comments on commit 443039a

Please sign in to comment.