diff --git a/GitVersion.yml b/GitVersion.yml index e1625e18f..78d807140 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -19,7 +19,7 @@ branches: v1_develop: mode: ContinuousDeployment - tag: dev + tag: v1_develop regex: v1_develop source-branches: - v1_release diff --git a/README.md b/README.md index f424e6aec..e82ec4c30 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ cd myproj dotnet run ``` +There is also a [visual designer](https://github.com/gui-cs/TerminalGuiDesigner) (uses Terminal.Gui itself). + ## Documentation * [Getting Started](https://gui-cs.github.io/Terminal.GuiV2Docs/docs/getting-started.html) @@ -47,14 +49,16 @@ The team is looking forward to seeing new amazing projects made by the community ## Sample Usage in C# -The following example shows a basic Terminal.Gui application in C#: - -[!code-csharp[](./Example/Example.cs)] +The following example shows a basic Terminal.Gui application in C#: +[Example (source)](./Example/Example.cs) When run the application looks as follows: ![Simple Usage app](./docfx/images/Example.png) +## Sample usage in F# +F# examples are located [here](./FSharpExample/Program.fs) + ## Installing Use NuGet to install the `Terminal.Gui` NuGet package: https://www.nuget.org/packages/Terminal.Gui diff --git a/Terminal.Gui/Text/TextFormatter.cs b/Terminal.Gui/Text/TextFormatter.cs index a4a8b7060..f426d7659 100644 --- a/Terminal.Gui/Text/TextFormatter.cs +++ b/Terminal.Gui/Text/TextFormatter.cs @@ -2124,7 +2124,7 @@ public class TextFormatter var start = string.Empty; var i = 0; - foreach (Rune c in text) + foreach (Rune c in text.EnumerateRunes ()) { if (c == hotKeySpecifier && i == hotPos) { diff --git a/UnitTests/Views/LabelTests.cs b/UnitTests/Views/LabelTests.cs index c58be7974..b798fbe80 100644 --- a/UnitTests/Views/LabelTests.cs +++ b/UnitTests/Views/LabelTests.cs @@ -1460,4 +1460,16 @@ e Application.Top.Dispose (); Application.ResetState (); } + + // https://github.com/gui-cs/Terminal.Gui/issues/3893 + [Fact] + [SetupFakeDriver] + public void TestLabelUnderscoreMinus () + { + var lbl = new Label () + { + Text = "TextView with some more test_- text. Unicode shouldn't 𝔹Aℝ𝔽!" + }; + lbl.Draw (); + } }