mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Merge branch 'v2_develop' into v2_develop
This commit is contained in:
@@ -19,7 +19,7 @@ branches:
|
||||
|
||||
v1_develop:
|
||||
mode: ContinuousDeployment
|
||||
tag: dev
|
||||
tag: v1_develop
|
||||
regex: v1_develop
|
||||
source-branches:
|
||||
- v1_release
|
||||
|
||||
@@ -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)
|
||||
@@ -48,13 +50,15 @@ 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)]
|
||||
[Example (source)](./Example/Example.cs)
|
||||
|
||||
When run the application looks as follows:
|
||||
|
||||

|
||||
|
||||
## 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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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 ();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user