Skip to content

Commit 0330cda

Browse files
committed
Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop
2 parents 40be08b + e6c8a58 commit 0330cda

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

GitVersion.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ branches:
1919

2020
v1_develop:
2121
mode: ContinuousDeployment
22-
tag: dev
22+
tag: v1_develop
2323
regex: v1_develop
2424
source-branches:
2525
- v1_release

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ cd myproj
2828
dotnet run
2929
```
3030

31+
There is also a [visual designer](https://github.com/gui-cs/TerminalGuiDesigner) (uses Terminal.Gui itself).
32+
3133
## Documentation
3234

3335
* [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
4749

4850
## Sample Usage in C#
4951

50-
The following example shows a basic Terminal.Gui application in C#:
51-
52-
[!code-csharp[](./Example/Example.cs)]
52+
The following example shows a basic Terminal.Gui application in C#:
53+
[Example (source)](./Example/Example.cs)
5354

5455
When run the application looks as follows:
5556

5657
![Simple Usage app](./docfx/images/Example.png)
5758

59+
## Sample usage in F#
60+
F# examples are located [here](./FSharpExample/Program.fs)
61+
5862
## Installing
5963

6064
Use NuGet to install the `Terminal.Gui` NuGet package: https://www.nuget.org/packages/Terminal.Gui

Terminal.Gui/Text/TextFormatter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,7 @@ public static string RemoveHotKeySpecifier (string text, int hotPos, Rune hotKey
21242124
var start = string.Empty;
21252125
var i = 0;
21262126

2127-
foreach (Rune c in text)
2127+
foreach (Rune c in text.EnumerateRunes ())
21282128
{
21292129
if (c == hotKeySpecifier && i == hotPos)
21302130
{

UnitTests/Views/LabelTests.cs

+12
Original file line numberDiff line numberDiff line change
@@ -1460,4 +1460,16 @@ public void CanFocus_True_MouseClick_Focuses ()
14601460
Application.Top.Dispose ();
14611461
Application.ResetState ();
14621462
}
1463+
1464+
// https://github.com/gui-cs/Terminal.Gui/issues/3893
1465+
[Fact]
1466+
[SetupFakeDriver]
1467+
public void TestLabelUnderscoreMinus ()
1468+
{
1469+
var lbl = new Label ()
1470+
{
1471+
Text = "TextView with some more test_- text. Unicode shouldn't 𝔹Aℝ𝔽!"
1472+
};
1473+
lbl.Draw ();
1474+
}
14631475
}

0 commit comments

Comments
 (0)