Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
671fa7d
Added help menu from the UICatalog into the StandaloneExample.
BDisp Sep 21, 2022
92dc7f0
Fixes #2053. MessageBox.Query still not wrapping with v1.8.0 on windo…
BDisp Sep 21, 2022
2ed7a0c
Merge pull request #2054 from BDisp/standalone-help-menu-added
tig Sep 21, 2022
a11cf57
Merge pull request #2056 from gui-cs/develop
tig Sep 21, 2022
8443f29
Removed packages.config (defunct). Relnotes for 1.8.1
tig Sep 21, 2022
37132c3
Merge pull request #2057 from gui-cs/v1_8_1
tig Sep 21, 2022
b80e6f2
Merge branch 'develop' into v1_8_1-2
tig Sep 21, 2022
d23f5c3
Merge pull request #2058 from gui-cs/v1_8_1-2
tig Sep 21, 2022
d432d26
Merge branch 'v1_8_1'
tig Sep 21, 2022
d5a1168
Merge pull request #2059 from gui-cs/main
tig Sep 21, 2022
0350015
Fixes #2061. WindowsDriver sometimes returns badly mouse flag zero on…
BDisp Sep 23, 2022
834a942
Fixes #2064. mouseGrabView must have a track to allow the views who u…
BDisp Sep 24, 2022
10fb8cd
Replacing to MouseGrabView.
BDisp Sep 24, 2022
91c49af
Bump actions/setup-dotnet from 1 to 2.1.1
dependabot[bot] Sep 26, 2022
41072af
Bump Microsoft.NET.Test.Sdk from 17.3.1 to 17.3.2
dependabot[bot] Sep 26, 2022
9d0b61c
Merge pull request #2066 from gui-cs/dependabot/github_actions/action…
tig Sep 26, 2022
6fc9f5e
Merge pull request #2067 from gui-cs/dependabot/nuget/Microsoft.NET.T…
tig Sep 26, 2022
185f4a1
Merge pull request #2063 from BDisp/windowsdriver-flag-zero-fix
tig Sep 26, 2022
32e7b63
Merge pull request #2065 from BDisp/mouseGrabView-track-feature
tig Sep 26, 2022
8ff4631
Bump ReactiveMarbles.ObservableEvents.SourceGenerator
dependabot[bot] Sep 27, 2022
b671586
Fixes #2071. DrawContentComplete event is never called from the base …
BDisp Sep 28, 2022
6739eea
Merge pull request #2072 from BDisp/drawcontentcomplete-fix
tig Sep 29, 2022
da6e2d2
Merge pull request #2068 from gui-cs/dependabot/nuget/ReactiveMarbles…
tig Sep 29, 2022
702ef46
Fixes #2069. KeyDown and KeyUp events must run before OnKeyDown and O…
BDisp Sep 27, 2022
eaaa636
Adding a more realistic key down/up event with null key.
BDisp Sep 28, 2022
df72859
Merge pull request #2070 from BDisp/view-keydown-keyup-fix
tig Sep 29, 2022
506a8d1
Bump actions/setup-dotnet from 2.1.1 to 3.0.1
dependabot[bot] Oct 10, 2022
49eefa6
Fixes #2081. Clipboard unit tests sometimes fail with WSL.
BDisp Oct 12, 2022
b87fd48
Fix locking for the entire RunIdle callback execution
tznind Oct 13, 2022
ccab024
Merge pull request #2080 from gui-cs/dependabot/github_actions/action…
tig Oct 13, 2022
371147d
Deleted demo.cs; changed to Example.cs from README
tig Oct 14, 2022
1a23879
Removed ancient StandaloneExample
tig Oct 14, 2022
b811e33
readme tweaks
tig Oct 14, 2022
2cdc9ae
fix typo
tig Oct 14, 2022
503e1e8
fixes link to OCGV
tig Oct 14, 2022
76d4e19
noted demo.cs deletion with link to history
tig Oct 14, 2022
066e23c
Merge pull request #2084 from tig/fixes_433_demo_cs
tig Oct 14, 2022
c505c5b
Bump actions/setup-dotnet from 3.0.1 to 3.0.2
dependabot[bot] Oct 17, 2022
c5f8150
Bump gittools/actions from 0.9.13 to 0.9.14
dependabot[bot] Oct 17, 2022
43c47b5
Added templates to readme
tig Oct 17, 2022
1731477
Merge pull request #2093 from tig/template_docs
tig Oct 17, 2022
25e7149
Merge pull request #2091 from gui-cs/dependabot/github_actions/action…
tig Oct 18, 2022
da34ded
Merge pull request #2092 from gui-cs/dependabot/github_actions/gittoo…
tig Oct 18, 2022
97c0f53
cleanup and fix docs in View class
pavkam Oct 18, 2022
43d89b1
Added Rider/Resharper settings file that enforces the formatting and …
pavkam Oct 18, 2022
20856f0
Non breaking implementation of cancellable root mouse events
tznind Oct 19, 2022
67839d1
Fix copy/paste error in SuppressKey test
tznind Oct 19, 2022
76dab4a
Simplify MakePrintable by using AND and avoiding converting to string…
pavkam Oct 19, 2022
5a0d6e7
Merge pull request #2099 from pavkam/cleanup_2
tig Oct 19, 2022
441960e
Added two unit tests to check for the MakePrintable cases.
pavkam Oct 19, 2022
f68cc7a
Merge branch 'develop' into cleanup_3
tig Oct 19, 2022
0368b98
Merge branch 'develop' into cleanup_1
tig Oct 19, 2022
3e19bf7
Correct for the comments on the PR and removed two unused imports.
pavkam Oct 19, 2022
b20483c
Change `MouseEvent` to a mutable class (previously struct) and added …
tznind Oct 19, 2022
b6f6396
Merge branch 'develop' into cancel-mouse-nonbreaking
tznind Oct 19, 2022
711d4d7
Updated docs and made MouseEvent fields into properties for futurepro…
tznind Oct 19, 2022
dd67b84
Merge branch 'cancel-mouse-nonbreaking' of https://github.com/tznind/…
tznind Oct 19, 2022
832874d
Merge branch 'cancel-mouse-nonbreaking' of https://github.com/tznind/…
tznind Oct 19, 2022
28560ca
Merge branch 'cancel-mouse-nonbreaking' of https://github.com/tznind/…
tznind Oct 19, 2022
a823b62
Merge pull request #2100 from tznind/cancel-mouse-nonbreaking
tig Oct 19, 2022
516e7e2
Fixes 2094. View does not clear it's background.
BDisp Oct 19, 2022
46ff335
Fix unit tests.
BDisp Oct 19, 2022
769f5c8
Improves the TabView minimum size and added more unit tests.
BDisp Oct 19, 2022
da748f3
Merge branch 'develop' into wsl-clipboard-unit-tests-fix
BDisp Oct 19, 2022
3d16586
Merge pull request #2105 from BDisp/tabview-minimum-size-improvement
tig Oct 19, 2022
38242dd
Makes Notepad look better and fixes bugs
tig Oct 19, 2022
ddf78ce
fixed shortcut for save as
tig Oct 19, 2022
7f0f697
Merge pull request #2107 from tig/tabview_upgrade
tig Oct 20, 2022
1357295
Merge pull request #2083 from tznind/fix-deadlock
tig Oct 20, 2022
c15d9bc
refactoring menutests
tig Oct 20, 2022
1b4cd61
Merge branch 'develop' into fix_2109_menubar_spacing
tig Oct 20, 2022
ab9dc99
Merge branch 'develop' into wsl-clipboard-unit-tests-fix
tig Oct 20, 2022
a108590
Merge pull request #2098 from pavkam/cleanup_1
tig Oct 20, 2022
350f1eb
Merge branch 'develop' into cleanup_3
tig Oct 20, 2022
ac6f775
Merge branch 'develop' into view-clear-background
tig Oct 20, 2022
af4306c
Merge branch 'develop' into fix_2109_menubar_spacing
tig Oct 20, 2022
b3ef79c
Merge pull request #2104 from BDisp/view-clear-background
tig Oct 20, 2022
52e6d10
Fixed tons of little doc typos
tig Oct 20, 2022
c48ad0d
Merge pull request #2112 from tig/View_docs_mention_Label
tig Oct 20, 2022
3fd6f68
Merge branch 'develop' into fix_2109_menubar_spacing
tig Oct 20, 2022
54934cd
Added some documentation into the testenvironments.json file.
BDisp Oct 20, 2022
c3ff978
Merge branch 'develop' into wsl-clipboard-unit-tests-fix
BDisp Oct 20, 2022
eb7fe9f
further progress
tig Oct 20, 2022
40df03d
Finished refactoring tests
tig Oct 20, 2022
5aebe14
removed test code from Notepad
tig Oct 20, 2022
f155069
Merge pull request #2082 from BDisp/wsl-clipboard-unit-tests-fix
tig Oct 21, 2022
c0da5a4
Merge branch 'develop' into cleanup_3
tig Oct 21, 2022
9e5137f
Merge pull request #2101 from pavkam/cleanup_3
tig Oct 21, 2022
99ab16d
Merge branch 'develop' into fix_2109_menubar_spacing
tig Oct 21, 2022
ce7567e
Fixes HotColor for non-activated menus
tig Oct 21, 2022
8ccfdd9
Add menu toggle for DesiredCursorVisibility to TreeView UICatalog sce…
tznind Oct 21, 2022
d93a247
documenting behavior
tig Oct 21, 2022
f3e7042
added constants to MenuBar
tig Oct 21, 2022
a69ceb2
testing improve this doc...
tig Oct 21, 2022
4ef3656
made code clearer
tig Oct 21, 2022
138d0da
made code clearer
tig Oct 21, 2022
24b450c
Merge branch 'develop' into fix_2109_menubar_spacing
tig Oct 21, 2022
802820e
Fixes #2121. ContextMenu: When open, Shift-F10 should close menu.
BDisp Oct 21, 2022
9eb74ae
Merge pull request #2130 from BDisp/context-menu-open-close-fix
tig Oct 21, 2022
76dd8a7
more doc improvements
tig Oct 21, 2022
6eac493
Merge branch 'develop' into fix_2109_menubar_spacing
tig Oct 21, 2022
f04e7c1
Merge branch 'develop' into fix_2118_menu_hotkeys
tig Oct 21, 2022
735624b
Merge pull request #2119 from tig/fix_2118_menu_hotkeys
tig Oct 21, 2022
8af9d0d
Merge branch 'develop' into fix_2109_menubar_spacing
tig Oct 21, 2022
ede7659
Merge branch 'fix_2109_menubar_spacing' of tig:tig/Terminal.Gui into …
tig Oct 21, 2022
e6c322b
backed out testing change
tig Oct 21, 2022
8cbd597
Merge pull request #2117 from tig/fix_2109_menubar_spacing
tig Oct 21, 2022
ff3a132
Change TreeView default cursor to invisible and force invisible only …
tznind Oct 22, 2022
015f0e8
Merge pull request #2123 from tznind/cursor-option
tig Oct 22, 2022
81d7c61
Fixes #2135. Character Map scenario doesn't show the content view.
BDisp Oct 25, 2022
6a509bd
Added one more unit test.
BDisp Oct 26, 2022
60a94eb
Added ContentOffset and ContentSize unit tests.
BDisp Oct 26, 2022
237682d
Merge pull request #2136 from BDisp/scrollview-content-view-fix
tig Oct 29, 2022
5e26651
Removed packages.config (defunct). Relnotes for 1.8.1
tig Sep 21, 2022
8e71782
Added help menu from the UICatalog into the StandaloneExample.
BDisp Sep 21, 2022
532bbe1
Fixes #2053. MessageBox.Query still not wrapping with v1.8.0 on windo…
BDisp Sep 21, 2022
ed31c42
Bump actions/setup-dotnet from 1 to 2.1.1
dependabot[bot] Sep 26, 2022
f1253ae
Bump Microsoft.NET.Test.Sdk from 17.3.1 to 17.3.2
dependabot[bot] Sep 26, 2022
e389a7b
Fixes #2061. WindowsDriver sometimes returns badly mouse flag zero on…
BDisp Sep 23, 2022
2dcbe74
Fixes #2064. mouseGrabView must have a track to allow the views who u…
BDisp Sep 24, 2022
ef12b60
Replacing to MouseGrabView.
BDisp Sep 24, 2022
6956246
Fixes #2071. DrawContentComplete event is never called from the base …
BDisp Sep 28, 2022
b764669
Bump ReactiveMarbles.ObservableEvents.SourceGenerator
dependabot[bot] Sep 27, 2022
e6e6dbb
Fixes #2069. KeyDown and KeyUp events must run before OnKeyDown and O…
BDisp Sep 27, 2022
c54483e
Adding a more realistic key down/up event with null key.
BDisp Sep 28, 2022
b4a0470
Bump actions/setup-dotnet from 2.1.1 to 3.0.1
dependabot[bot] Oct 10, 2022
0588c3a
Deleted demo.cs; changed to Example.cs from README
tig Oct 14, 2022
a9444e6
Removed ancient StandaloneExample
tig Oct 14, 2022
8e4cb50
readme tweaks
tig Oct 14, 2022
94b596e
fix typo
tig Oct 14, 2022
a8511f3
fixes link to OCGV
tig Oct 14, 2022
fb1491f
noted demo.cs deletion with link to history
tig Oct 14, 2022
c3b4aeb
Added templates to readme
tig Oct 17, 2022
7a506dd
Bump actions/setup-dotnet from 3.0.1 to 3.0.2
dependabot[bot] Oct 17, 2022
ff96e09
Bump gittools/actions from 0.9.13 to 0.9.14
dependabot[bot] Oct 17, 2022
7b16a93
Non breaking implementation of cancellable root mouse events
tznind Oct 19, 2022
5005434
Fix copy/paste error in SuppressKey test
tznind Oct 19, 2022
46694ff
Change `MouseEvent` to a mutable class (previously struct) and added …
tznind Oct 19, 2022
e7efa40
Updated docs and made MouseEvent fields into properties for futurepro…
tznind Oct 19, 2022
7ce2cf3
Added Rider/Resharper settings file that enforces the formatting and …
pavkam Oct 18, 2022
c8eac9c
Improves the TabView minimum size and added more unit tests.
BDisp Oct 19, 2022
e87cd22
Makes Notepad look better and fixes bugs
tig Oct 19, 2022
b4f7fc0
fixed shortcut for save as
tig Oct 19, 2022
e809aff
refactoring menutests
tig Oct 20, 2022
8e54135
Fix locking for the entire RunIdle callback execution
tznind Oct 13, 2022
b1ece93
cleanup and fix docs in View class
pavkam Oct 18, 2022
bd5b122
Correct for the comments on the PR and removed two unused imports.
pavkam Oct 19, 2022
3a19822
Fixes 2094. View does not clear it's background.
BDisp Oct 19, 2022
c8f3939
Fix unit tests.
BDisp Oct 19, 2022
55d4a78
Fixed tons of little doc typos
tig Oct 20, 2022
4646b72
further progress
tig Oct 20, 2022
68697c0
Finished refactoring tests
tig Oct 20, 2022
2c63d92
removed test code from Notepad
tig Oct 20, 2022
327980d
Simplify MakePrintable by using AND and avoiding converting to string…
pavkam Oct 19, 2022
fec4c28
Fixes #2081. Clipboard unit tests sometimes fail with WSL.
BDisp Oct 12, 2022
8ddbed9
Added some documentation into the testenvironments.json file.
BDisp Oct 20, 2022
f9a3817
documenting behavior
tig Oct 21, 2022
5f2ec20
added constants to MenuBar
tig Oct 21, 2022
57cef55
made code clearer
tig Oct 21, 2022
09a6490
made code clearer
tig Oct 21, 2022
9ef5140
more doc improvements
tig Oct 21, 2022
40c1faf
testing improve this doc...
tig Oct 21, 2022
05384c8
Fixes #2121. ContextMenu: When open, Shift-F10 should close menu.
BDisp Oct 21, 2022
54ab534
Fixes HotColor for non-activated menus
tig Oct 21, 2022
abdacea
backed out testing change
tig Oct 21, 2022
4739f6a
Add menu toggle for DesiredCursorVisibility to TreeView UICatalog sce…
tznind Oct 21, 2022
62869c9
Change TreeView default cursor to invisible and force invisible only …
tznind Oct 22, 2022
cc1691d
Fixes #2135. Character Map scenario doesn't show the content view.
BDisp Oct 25, 2022
8f7b038
Added one more unit test.
BDisp Oct 26, 2022
598be52
Added ContentOffset and ContentSize unit tests.
BDisp Oct 26, 2022
8d9d96f
Merge develop and resolving conflicts.
BDisp Oct 30, 2022
15a7e37
Fixes #2076. Running alone the SetColors_Changes_Colors unit test wil…
BDisp Oct 9, 2022
abd9d47
Added support to handle with the virtual packet key.
BDisp Oct 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3.0.2
with:
dotnet-version: 6.0.100

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3

- name: Setup .NET Core
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v3.0.2
with:
dotnet-version: 6.0.100

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
fetch-depth: 0 #fetch-depth is needed for GitVersion

- name: Install and calculate the new version with GitVersion
uses: gittools/actions/gitversion/setup@v0.9.13
uses: gittools/actions/gitversion/setup@v0.9.14
with:
versionSpec: 5.x

- name: Determine Version
uses: gittools/actions/gitversion/execute@v0.9.13
uses: gittools/actions/gitversion/execute@v0.9.14
id: gitversion # step id used as reference for output values

- name: Display GitVersion outputs
Expand All @@ -30,7 +30,7 @@ jobs:
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}"

- name: Setup dotnet
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v3.0.2
with:
dotnet-version: 6.0.100

Expand Down
76 changes: 76 additions & 0 deletions Example/Example.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// A simple Terminal.Gui example in C# - using C# 9.0 Top-level statements
// This is the same code found in the Termiminal Gui README.md file.

using Terminal.Gui;
using NStack;

Application.Init ();

// Creates the top-level window to show
var win = new Window ("Example App") {
X = 0,
Y = 1, // Leave one row for the toplevel menu

// By using Dim.Fill(), this Window will automatically resize without manual intervention
Width = Dim.Fill (),
Height = Dim.Fill ()
};

Application.Top.Add (win);

// Creates a menubar, the item "New" has a help menu.
var menu = new MenuBar (new MenuBarItem [] {
new MenuBarItem ("_File", new MenuItem [] {
new MenuItem ("_New", "Creates a new file", null),
new MenuItem ("_Close", "",null),
new MenuItem ("_Quit", "", () => { if (Quit ()) Application.Top.Running = false; })
}),
new MenuBarItem ("_Edit", new MenuItem [] {
new MenuItem ("_Copy", "", null),
new MenuItem ("C_ut", "", null),
new MenuItem ("_Paste", "", null)
})
});
Application.Top.Add (menu);

static bool Quit ()
{
var n = MessageBox.Query (50, 7, "Quit Example", "Are you sure you want to quit this example?", "Yes", "No");
return n == 0;
}

var login = new Label ("Login: ") { X = 3, Y = 2 };
var password = new Label ("Password: ") {
X = Pos.Left (login),
Y = Pos.Top (login) + 1
};
var loginText = new TextField ("") {
X = Pos.Right (password),
Y = Pos.Top (login),
Width = 40
};
var passText = new TextField ("") {
Secret = true,
X = Pos.Left (loginText),
Y = Pos.Top (password),
Width = Dim.Width (loginText)
};

// Add the views to the main window,
win.Add (
// Using Computed Layout:
login, password, loginText, passText,

// Using Absolute Layout:
new CheckBox (3, 6, "Remember me"),
new RadioGroup (3, 8, new ustring [] { "_Personal", "_Company" }, 0),
new Button (3, 14, "Ok"),
new Button (10, 14, "Cancel"),
new Label (3, 18, "Press F9 or ESC plus 9 to activate the menubar")
);

// Run blocks until the user quits the application
Application.Run ();

// Always bracket Application.Init with .Shutdown.
Application.Shutdown ();
11 changes: 0 additions & 11 deletions Example/Properties/launchSettings.json

This file was deleted.

10 changes: 7 additions & 3 deletions Example/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# demo.cs
# Terminal.Gui C# Example

This is the original Terminal.Gui sample app. Over time we will be simplifying this sample to show just the basics of creating a Terminal.Gui app in C#.
This example shows how to use the Terminal.Gui library to create a simple GUI application in C#.

See the Sample Code section [README.md](https://github.com/gui-cs/Terminal.Gui) for a list of all samples.
This is the same code found in the Terminal.Gui README.md file.

See [README.md](https://github.com/gui-cs/Terminal.Gui) for a list of all Terminal.Gui samples.

Note, the old `demo.cs` example has been deleted because it was not a very good example. It can still be found in the [git history](https://github.com/gui-cs/Terminal.Gui/tree/v1.8.2).
Loading