Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop

This commit is contained in:
Tig
2025-02-18 16:30:46 -07:00
4 changed files with 21 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ branches:
v1_develop:
mode: ContinuousDeployment
tag: dev
tag: v1_develop
regex: v1_develop
source-branches:
- v1_release

View File

@@ -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

View File

@@ -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)
{

View File

@@ -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 ();
}
}