Skip to content

Fixed merge issues #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
573 commits
Select commit Hold shift + click to select a range
11f2f30
Added unicode edit support
tig Oct 10, 2024
5b108a9
Using scripts to build release for NativeAot and SelfContained.
BDisp Oct 10, 2024
0b4227b
Trying to fix path.
BDisp Oct 10, 2024
a57db4e
Again.
BDisp Oct 10, 2024
c12a2cf
Fix the path for the package,
BDisp Oct 10, 2024
214d109
Need to build before pack.
BDisp Oct 10, 2024
37e983a
Added AdvancingFocus events. Fixed hexview bugs
tig Oct 10, 2024
fe98ce6
Added AdvancingFocus events.
tig Oct 10, 2024
29b902b
Needs also build before pack locally.
BDisp Oct 10, 2024
73ea9ec
Fixed mouse click issue
tig Oct 10, 2024
3bcc34b
Fix build path.
BDisp Oct 10, 2024
662c841
There's a was disposed bug that can't track down. Removing test
tig Oct 10, 2024
5c69dfd
Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop
tig Oct 10, 2024
37b0143
hacking aot thing to pass release build
tig Oct 10, 2024
9c075d8
disabling aot thing to pass release build
tig Oct 10, 2024
3383ce1
Merge branch 'v2_develop' into v2_3771_textview-no-printable-rune-fix
BDisp Oct 10, 2024
c0ae14b
that didn't work. reverting
tig Oct 10, 2024
bd307f7
Merge branch 'v2_develop' into v2_2798_add-true-color-to-cursesdriver
BDisp Oct 10, 2024
5ce1750
ahh. didn't know there were two aot samples
tig Oct 10, 2024
f789f6a
that didn't work. reverting again
tig Oct 10, 2024
bc20229
Merge branch 'v2_develop' into v2_3784_selfcontained_nativeaot-local-…
BDisp Oct 10, 2024
fae9675
Merge branch 'v2_develop' into v2_3771_textview-no-printable-rune-fix
BDisp Oct 10, 2024
1a8569b
Merge branch 'v2_develop' into v2_2798_add-true-color-to-cursesdriver
BDisp Oct 10, 2024
7d197c6
Merge branch 'v2_3784_selfcontained_nativeaot-local-release-package' …
BDisp Oct 10, 2024
91c4e30
Merge branch 'v2_3784_selfcontained_nativeaot-local-release-package' …
BDisp Oct 10, 2024
8302398
Merge branch 'v2_3777-hexedit' of tig:tig/Terminal.Gui into v2_3777-h…
tig Oct 11, 2024
9c6a305
Fixes #3784. SelfContained and NativeAot projects should use the loca…
BDisp Oct 11, 2024
520194e
Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop
tig Oct 11, 2024
4183a06
Merge branch 'v2_develop' of tig:gui-cs/Terminal.Gui into v2_develop
tig Oct 11, 2024
14cce2e
Merge branch 'v2_develop' into v2_2798_add-true-color-to-cursesdriver
tig Oct 11, 2024
b6b60b1
Merge branch 'v2_develop' into v2_3771_textview-no-printable-rune-fix
tig Oct 11, 2024
80d1a61
Merge branch 'v2_develop' into v2_3777-hexedit
tig Oct 11, 2024
bf095b3
Update publish.yml (#3789)
tig Oct 11, 2024
b98c6fa
Merge branch 'v2_develop' into v2_2798_add-true-color-to-cursesdriver
tig Oct 11, 2024
ffe5154
Merge branch 'v2_develop' into v2_3771_textview-no-printable-rune-fix
tig Oct 11, 2024
9cb985d
Update publish.yml
tig Oct 11, 2024
bc1aeaa
Merge pull request #3770 from BDisp/v2_2798_add-true-color-to-cursesd…
tig Oct 11, 2024
a06dad5
Merge pull request #3772 from BDisp/v2_3771_textview-no-printable-run…
tig Oct 11, 2024
a27f8cc
Merge branch 'v2_develop' into v2_3777-hexedit
tig Oct 11, 2024
57de1ff
Merge branch 'v2_develop' into sixel-encoder-tinkering
tig Oct 11, 2024
4cae9ef
Merge branch 'v2_develop' of tig:gui-cs/Terminal.Gui into v2_develop
tig Oct 11, 2024
3715166
Merge branch 'v2_release' into v2_develop
tig Oct 11, 2024
f247807
Merge pull request #3788 from gui-cs/v2_develop
tig Oct 11, 2024
0085e25
Merge branch 'v2_release' of tig:gui-cs/Terminal.Gui into v2_release
tig Oct 11, 2024
06a2f71
Merge branch 'v2_develop' into sixel-encoder-tinkering
tznind Oct 11, 2024
4959966
Merge branch 'v2_3777-hexedit' of tig:tig/Terminal.Gui into v2_3777-h…
tig Oct 11, 2024
b977f65
Merge branch 'v2_develop' into v2_3777-hexedit
tig Oct 11, 2024
996b3f0
Code cleanup
tig Oct 11, 2024
1476154
Merge branch 'v2_3777-hexedit' of tig:tig/Terminal.Gui into v2_3777-h…
tig Oct 11, 2024
505d0bd
Code cleanup - CancelEventArgs
tig Oct 11, 2024
d91d604
Code cleanup - CancelEventArgs
tig Oct 11, 2024
b4b5368
Fixed hexView colors
tig Oct 11, 2024
cc0d965
Fixes #3713 - `TextField` & `TextView` - When pressing right/left cl…
tznind Oct 11, 2024
87a4873
Merge branch 'v2_develop' into v2_3777-hexedit
tig Oct 11, 2024
9a9f48c
Fixed DrawHorizontalShadowTransparent (vertical was already fixed).
tig Oct 11, 2024
e370cfb
Merge branch 'v2_3777-hexedit' of tig:tig/Terminal.Gui into v2_3777-h…
tig Oct 11, 2024
1e99319
Fixed
tig Oct 13, 2024
c46cf78
Merge branch 'v2_develop' into sixel-encoder-tinkering
tznind Oct 13, 2024
8cb0c84
Fixed View.KeyDown/Up event handling
tig Oct 13, 2024
61be061
Fixed TableView key handling
tig Oct 13, 2024
d6852cb
KeyUp/Down api docs
tig Oct 13, 2024
04b336a
Try adding sixel to curses driver
tznind Oct 13, 2024
ee196fe
WIP: Keyboard event improvements
tig Oct 14, 2024
6df071f
Fixed.
tig Oct 14, 2024
84b2719
Fixed InvokingKeyBindings event semantics
tig Oct 14, 2024
c19cc7c
Code cleanup
tig Oct 14, 2024
f536945
Application.Keyboard Code cleanup
tig Oct 14, 2024
bc51f88
KeyDown API usage cleanup
tig Oct 14, 2024
3f3ceae
API docs
tig Oct 14, 2024
89d8b74
Key API simplification
tig Oct 14, 2024
b766e4e
Fixed listView issue.
tig Oct 14, 2024
053da7e
Application.Mouse cleanup
tig Oct 15, 2024
a9e1f2a
View.Mouse cleanup - WIP
tig Oct 15, 2024
a19781c
View.Mouse cleanup - WIP2
tig Oct 15, 2024
1abe318
View.Mouse cleanup - WIP3
tig Oct 15, 2024
0a6ba83
View.Mouse cleanup - Fixed combobox
tig Oct 15, 2024
681dd9b
View.Mouse cleanup - Fixed combobox
tig Oct 15, 2024
2e37ca3
View.Mouse cleanup - Fixed MenuBar
tig Oct 15, 2024
8807e48
View.Mouse cleanup - Fixed TableView
tig Oct 15, 2024
1363995
Merged MouseEvent and MouseEventEventArgs into MouseEventArgs
tig Oct 15, 2024
f7de547
MouseEventArgs cleanup
tig Oct 15, 2024
7866e80
MouseEventArgs cleanup
tig Oct 15, 2024
12fe1c2
Fixed OnMouseClicked
tig Oct 15, 2024
9363401
Broke OnMouseClicked
tig Oct 15, 2024
e1faab0
Refixed OnMouseClicked
tig Oct 15, 2024
7d07d84
Refixed OnMouseClicked - button
tig Oct 15, 2024
e6fd635
More fixes
tig Oct 15, 2024
f503a5c
keyEvent -> key
tig Oct 15, 2024
c50f47b
Code cleanup
tig Oct 15, 2024
23eb14c
Merge pull request #3795 from tig/v2_3793-CollectionNavigator-Use-OnK…
tig Oct 15, 2024
5590c28
Merge branch 'v2_develop' into v2_3029-MouseEvents
tig Oct 15, 2024
6a90328
Added Is<flag> helpers
tig Oct 15, 2024
64f87cd
code cleanup
tig Oct 15, 2024
bf2e032
Fixed Time/DateField crash
tig Oct 15, 2024
e85f694
Fixed Time/DateField crash 2
tig Oct 15, 2024
0a108fa
Merge pull request #3797 from tig/v2_3029-MouseEvents
tig Oct 15, 2024
2c3a761
Merge branch 'v2_develop' into v2_3777-hexedit
tig Oct 15, 2024
9d83e23
Merge branch 'v2_3777-hexedit' of tig:tig/Terminal.Gui into v2_3777-h…
tig Oct 15, 2024
5c09fa2
Fixed merge issues
tig Oct 15, 2024
8ddfd71
Merge branch 'v2_develop' into sixel-encoder-tinkering
tig Oct 15, 2024
d6a652b
Merge pull request #3783 from tig/v2_3777-hexedit
tig Oct 15, 2024
d104a56
WIP - prototyping...
tig Oct 15, 2024
70bf627
More prototyping
tig Oct 16, 2024
f5ddf6b
More prototyping 2
tig Oct 16, 2024
8c7982f
Tons of Layout refactoring. LayoutSubviews is now internal.
tig Oct 17, 2024
ed80c66
Fixed content scrolling
tig Oct 17, 2024
8f1954f
Fixes #3790. Can't build v2_develop RELEASE - "The local source 'C:\U…
BDisp Oct 17, 2024
949f593
Merge branch 'v2_develop' into v2_3761_2886-Draw-and-Layout-Perf
tig Oct 17, 2024
11b3eb0
Fixed more unit tests
tig Oct 17, 2024
9275163
Fixing unit tests
tig Oct 17, 2024
226dd4f
Fixing unit tests 2
tig Oct 17, 2024
b9b853a
Fixing unit tests 3
tig Oct 17, 2024
172409f
Fixed more unit tests ...
tig Oct 18, 2024
5dc832b
Fixing unit tests 4
tig Oct 18, 2024
2d48bc9
Working on shortcut
tig Oct 19, 2024
2e163ee
DimAuto fixes
tig Oct 19, 2024
72ea740
More shortcut stuff
tig Oct 21, 2024
4d4dbbf
Fixing stuff
tig Oct 22, 2024
a632c23
Fixed stoopid screen bug
tig Oct 22, 2024
fe2497e
Back to all unit tests passing
tig Oct 22, 2024
262c671
Added all views tester for draw/layout.
tig Oct 22, 2024
98a2265
fixed all views to deal with Driver is null
tig Oct 22, 2024
6e98d10
Switched back to Application.Begin not calling Refresh
tig Oct 22, 2024
572901b
Switched back to Application.Begin not calling Refresh
tig Oct 22, 2024
5e9178b
Everything but adornment drawing is working
tig Oct 23, 2024
008d497
Fixed TileView & ListView unit test failures
tig Oct 23, 2024
a6f03e4
Merge branch 'v2_develop' into sixel-encoder-tinkering
tig Oct 23, 2024
3156641
Make sixel 'opt in' in images scenario and apply a hack to fix TabVie…
tznind Oct 23, 2024
ce41afd
xml comments
tznind Oct 23, 2024
b31339d
Tons of stuff
tig Oct 23, 2024
ed48864
almost ready
tig Oct 24, 2024
bfb243a
Added benchmarking stuff
tig Oct 24, 2024
7b73517
More benchmarks
tig Oct 24, 2024
bc12c4b
Added timeout to test
tig Oct 24, 2024
76895f1
Fixed bugs
tig Oct 24, 2024
5a11a39
Code cleanup
tig Oct 24, 2024
a93d1ce
better names and API docs
tig Oct 24, 2024
66f5281
code reorg
tig Oct 24, 2024
317d425
debugging iterations
tig Oct 25, 2024
1c429da
debugging iterations
tig Oct 25, 2024
fa37103
reverted diag stuff that broke unit tests
tig Oct 25, 2024
ed05e17
Fixed issue with enter/leave
tig Oct 25, 2024
69cd30c
Prototype Scenario benchmark
tig Oct 25, 2024
0d51b5e
Support nullable scenarios
tig Oct 25, 2024
bbf54f4
Added Benchmarking to UI Catalog
tig Oct 25, 2024
ce900ad
Benchmark cleanup
tig Oct 25, 2024
1cbdb5c
Refactored View editors
tig Oct 25, 2024
98d0454
Refactored View editors 2
tig Oct 25, 2024
10d99a2
Beefed up benchmarking
tig Oct 26, 2024
2b7f3c2
Fixed timeout bug
tig Oct 26, 2024
f49213a
Changed benchmark screen size
tig Oct 26, 2024
f3ec218
Removed extra key
tig Oct 26, 2024
ed6ae17
Fixed animation scenario bug
tig Oct 26, 2024
fc5c3cb
Fixed animation scenario bug2
tig Oct 26, 2024
6a19d85
Fixed animation scenario bug3
tig Oct 26, 2024
1a49896
Fixing unit test failure from bad debug.fail
tig Oct 26, 2024
68bc258
Cleaned up launch settings
tig Oct 26, 2024
d6470fb
IsInitialized->Initialized
tig Oct 26, 2024
94b254a
IDesignable for TableView
tig Oct 26, 2024
6bfa8ba
IDesignable for GraphView
tig Oct 26, 2024
320ff8b
IDesignable for SpinnerView
tig Oct 26, 2024
7315ff7
IDesignable for TreeView
tig Oct 26, 2024
8ea89b8
IDesignable for TreeView
tig Oct 26, 2024
ee29ed8
View Draw API docs and code cleanup
tig Oct 26, 2024
92dac0e
View Draw API docs and code cleanup
tig Oct 26, 2024
6e873e0
View Draw API docs and code cleanup
tig Oct 26, 2024
245cfea
Fix TabView and unit tests.
BDisp Oct 27, 2024
606bdf1
Added View.Set/GetAtribute. Made Driver.Set/GetAttribute internal
tig Oct 27, 2024
6b5d291
Resolving merge conflicts.
BDisp Oct 27, 2024
04881bc
Remove not accessed local variable.
BDisp Oct 27, 2024
dde9b92
Remove unused local variable.
BDisp Oct 27, 2024
bcc1168
Fix typo.
BDisp Oct 27, 2024
116399c
Add #nullable enable.
BDisp Oct 27, 2024
7491983
Tweaked drawing code.
tig Oct 27, 2024
a7040b8
Fixed PosDim bug
tig Oct 27, 2024
c1597b3
Merge branch 'v2_3761_2886-Draw-and-Layout-Perf-tabview' of github.co…
tig Oct 27, 2024
51fcfb5
Draw->DrawIndicator
tig Oct 27, 2024
87486b1
Renamed Refresh. COde Cleanup
tig Oct 27, 2024
53708fa
api doc
tig Oct 28, 2024
e0551f4
NeedsDisplay -> NeedsDraw
tig Oct 28, 2024
d92ef0f
Added a port of System.Drawing.Region with unit tests.
tig Oct 28, 2024
844179b
ConsoleDriver now uses Region for Clip.
tig Oct 28, 2024
7baede5
Remove unused code from UnmanagedLibrary (#3799)
kasperk81 Oct 28, 2024
2f7d80a
Merge pull request #3734 from tznind/sixel-encoder-tinkering
tig Oct 28, 2024
cbb7ddc
Merged latest v2_develop
tig Oct 28, 2024
262bc01
Enabled FileDialog IDesignable
tig Oct 28, 2024
17e3fe8
Non-rectangular clip reigion support basically works
tig Oct 29, 2024
4399404
fix the build issue of F# example
syohex Oct 30, 2024
5a41d2c
Fixing unit tests. WIP
tig Oct 30, 2024
0e6a2bc
Fixing unit tests. TableView. WIP
tig Oct 30, 2024
d835b56
Fixed more clipping bugs and unit tests. All tests pass!
tig Oct 30, 2024
fdeb8e9
WIP: Figuring out how to make margin transparent
tig Oct 30, 2024
7e0f606
WIP: Figuring out how to make margin transparent
tig Oct 30, 2024
8835126
All tests pass (esxcept ScrollView and TabView which are disabled for…
tig Nov 1, 2024
b0b5b23
Code cleanup
tig Nov 1, 2024
ef06f4b
Implemented deferred Margin drawing to enable shadow with minimal per…
tig Nov 3, 2024
593160d
Code cleanup and refactor
tig Nov 3, 2024
563d58a
Code cleanup and refactor
tig Nov 3, 2024
e4b5523
drawming.md
tig Nov 3, 2024
304784c
Code cleanup and refactor
tig Nov 4, 2024
2f9cf08
Code cleanup and refactor
tig Nov 4, 2024
7656602
#nullable enable
tig Nov 4, 2024
66485a0
#nullable enable - Attribute.cs
tig Nov 4, 2024
2214d8c
#nullable enable
tig Nov 4, 2024
a5badb8
Added arrangmenteditor to AllViewsTester
tig Nov 4, 2024
c0ee541
Code cleanup and API docs
tig Nov 4, 2024
76b4b72
Code cleanup and API docs
tig Nov 4, 2024
55387d3
Made more Driver APIs internal
tig Nov 4, 2024
947914b
Made more Driver APIs internal
tig Nov 4, 2024
7fb321b
Cleanup
tig Nov 5, 2024
b48bc2b
typo
tig Nov 5, 2024
77ae7ae
Rebuildling TabView - WIP
tig Nov 6, 2024
e6180b6
Revert "Rebuildling TabView - WIP"
tig Nov 6, 2024
49d36f2
Fix SingleBackgroundWorker scenario.
BDisp Nov 6, 2024
10a2d7f
Merge branch 'BDisp-v2_3761_2886-Draw-and-Layout-Perf-fix' into v2_37…
tig Nov 6, 2024
720729d
Merge pull request #42 from BDisp/v2_3761_2886-Draw-and-Layout-Perf-fix
tig Nov 6, 2024
5a7ac91
Merge branch 'v2_3761_2886-Draw-and-Layout-Perf' of tig:tig/Terminal.…
tig Nov 6, 2024
07b295b
Code cleanup
tig Nov 6, 2024
3ad8969
WIP: adding superviewrenderslinecanvas tests
tig Nov 6, 2024
69a2c4d
Messing with border
tig Nov 7, 2024
45ce64a
Added Exclusions to LineCanvas
tig Nov 7, 2024
3d4658d
LineCanvas - Exclude
tig Nov 7, 2024
32f316f
LineCanvas - Exclude
tig Nov 7, 2024
9288de7
LineCanvas - Exclude
tig Nov 7, 2024
e2bb22e
Auto-join is mostly all working
tig Nov 7, 2024
95f21c3
LineCanvas code cleanup and API docs
tig Nov 7, 2024
9fc9438
Perf work
tig Nov 7, 2024
3743046
Unit test cleanup
tig Nov 7, 2024
f8c384a
Unit test cleanup2
tig Nov 7, 2024
262777e
Unit test cleanup2
tig Nov 7, 2024
1013b90
Partiall re-fixed TabView
tig Nov 7, 2024
054559a
Fixed SyntaxHighlighting
tig Nov 7, 2024
4ccb3fb
Merge pull request #3805 from syohex/fix-fsharp-example
tig Nov 7, 2024
72f0f3b
Merge branch 'v2_develop' into v2_3761_2886-Draw-and-Layout-Perf
tig Nov 7, 2024
b597925
Merge branch 'v2_2489_scroll-scrollbar-new' of tig:BDisp/Terminal.Gui…
tig Nov 7, 2024
dc7bd44
Merged v2_develop
tig Nov 8, 2024
127bfd5
Refactoring... WIP
tig Nov 9, 2024
427f5b1
Refactoring... WIP 2
tig Nov 9, 2024
b2eae4c
Refactoring... WIP 3
tig Nov 10, 2024
9777357
pulled & merged
tig Nov 10, 2024
701d592
Unit tests pass
tig Nov 10, 2024
805f702
Scrolling scenario upgraded
tig Nov 10, 2024
315b3cd
unit tests pass
tig Nov 10, 2024
362c1d9
Removed legacy scrollview stuff.
tig Nov 10, 2024
8d41641
REMOVED RESPONDER!
tig Nov 10, 2024
23d5ee2
REMOVED RESPONDER 2!
tig Nov 10, 2024
2c48ac6
REMOVED RESPONDER 3!
tig Nov 10, 2024
d3d3df8
Fixed feedback from bdisp
tig Nov 10, 2024
dbedeb6
Merge pull request #3798 from tig/v2_3761_2886-Draw-and-Layout-Perf
tig Nov 10, 2024
f206bb0
Merge branch 'v2_develop' into BDisp-v2_2489_scroll-scrollbar-new
tig Nov 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
labels: bug
assignees: ''

---
Expand Down Expand Up @@ -36,3 +36,6 @@ If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.

**Set Project & Milestone**
If you have access, please don't forget to set the right Project and Milestone.
8 changes: 7 additions & 1 deletion .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ jobs:
dotnet-version: 8.x
dotnet-quality: 'ga'

- name: Build Release
- name: Build Release Terminal.Gui
run: dotnet build Terminal.Gui/Terminal.Gui.csproj --configuration Release

- name: Pack Release Terminal.Gui
run: dotnet pack Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ./local_packages

- name: Build Release Solution
run: dotnet build --configuration Release


Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
- name: Build Release
run: |
dotnet-gitversion /updateprojectfiles
dotnet build --no-incremental --nologo --force --configuration Release
dotnet test --configuration Release
dotnet build Terminal.Gui/Terminal.Gui.csproj --no-incremental --nologo --force --configuration Release
dotnet test Terminal.Gui/Terminal.Gui.csproj --configuration Release

- name: Pack
run: dotnet pack -c Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}'
run: dotnet pack Terminal.Gui/Terminal.Gui.csproj -c Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}'

# - name: Test to generate Code Coverage Report
# run: |
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ _ReSharper.**
~$*
*~

# NuGet Stuff
*.nupkg
*.snupkg
# Exclude everything in packages directory except the packages/build directory
**/[Pp]ackages/*
!**/[Pp]ackages/build/
Expand Down
6 changes: 3 additions & 3 deletions CommunityToolkitExample/LoginView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public LoginView (LoginViewModel viewModel)
{
ViewModel.Password = passwordInput.Text;
};
loginButton.Accept += (_, _) =>
loginButton.Accepting += (_, _) =>
{
if (!ViewModel.CanLogin) { return; }
ViewModel.LoginCommand.Execute (null);
};

clearButton.Accept += (_, _) =>
clearButton.Accepting += (_, _) =>
{
ViewModel.ClearCommand.Execute (null);
};
Expand Down Expand Up @@ -59,7 +59,7 @@ public void Receive (Message<LoginActions> message)
}
}
SetText();
Application.Refresh ();
Application.LayoutAndDraw ();
}

private void SetText ()
Expand Down
2 changes: 1 addition & 1 deletion Example/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public ExampleWindow ()
};

// When login button is clicked display a message popup
btnLogin.Accept += (s, e) =>
btnLogin.Accepting += (s, e) =>
{
if (userNameText.Text == "admin" && passwordText.Text == "password")
{
Expand Down
2 changes: 1 addition & 1 deletion FSharpExample/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type ExampleWindow() as this =
let btnLogin = new Button(Text = "Login", Y = Pos.Bottom(passwordLabel) + Pos.op_Implicit(1), X = Pos.Center(), IsDefault = true)

// When login button is clicked display a message popup
btnLogin.Accept.Add(fun _ ->
btnLogin.Accepting.Add(fun _ ->
if userNameText.Text = "admin" && passwordText.Text = "password" then
MessageBox.Query("Logging In", "Login Successful", "Ok") |> ignore
ExampleWindow.UserName <- userNameText.Text.ToString()
Expand Down
2 changes: 1 addition & 1 deletion NativeAot/NativeAot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PackageReference Include="Terminal.Gui" Version="[2.0.0-v2-develop.2189,3)" />
<PackageReference Include="Terminal.Gui" Version="2.0.0" />
<TrimmerRootAssembly Include="Terminal.Gui" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion NativeAot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public ExampleWindow ()
};

// When login button is clicked display a message popup
btnLogin.Accept += (s, e) =>
btnLogin.Accepting += (s, e) =>
{
if (userNameText.Text == "admin" && passwordText.Text == "password")
{
Expand Down
2 changes: 1 addition & 1 deletion NativeAot/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"NativeAot": {
"commandName": "Project"
},
"WSL : UICatalog": {
"WSL : NativeAot": {
"commandName": "Executable",
"executablePath": "wsl",
"commandLineArgs": "dotnet NativeAot.dll",
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

* The current, stable, release of Terminal.Gui v1 is [![Version](https://img.shields.io/nuget/v/Terminal.Gui.svg)](https://www.nuget.org/packages/Terminal.Gui).
* The current `prealpha` release of Terminal.Gui v2 can be found on [Nuget](https://www.nuget.org/packages/Terminal.Gui).
* Developers starting new TUI projects are encouraged to target `v2`. The API is signifcantly changed, and significantly improved. There will be breaking changes in the API before Beta, but the core API is stable.
* Developers starting new TUI projects are encouraged to target `v2`. The API is significantly changed, and significantly improved. There will be breaking changes in the API before Beta, but the core API is stable.
* `v1` is in maintenance mode and we will only accept PRs for issues impacting existing functionality.

**Terminal.Gui**: A toolkit for building rich console apps for .NET, .NET Core, and Mono that works on Windows, the Mac, and Linux/Unix.
Expand All @@ -35,9 +35,9 @@ dotnet run
* [API Documentation](https://gui-cs.github.io/Terminal.GuiV2Docs/api/Terminal.Gui.html)
* [Documentation Home](https://gui-cs.github.io/Terminal.GuiV2Docs)

The above documentation matches the most recent Nuget release from the `v2_develop` branch. Get the [v1 documentation here](This is the v2 API documentation. For v1 go here: https://gui-cs.github.io/Terminal.Gui/api/Terminal.Gui.html)
The above documentation matches the most recent Nuget release from the `v2_develop` branch. Get the [v1 documentation here](https://gui-cs.github.io/Terminal.Gui/api/Terminal.Gui.html).

See the [`Terminal.Gui/` README](https://github.com/gui-cs/Terminal.Gui/tree/master/Terminal.Gui) for an overview of how the library is structured.
See the [`Terminal.Gui/`README](https://github.com/gui-cs/Terminal.Gui/tree/master/Terminal.Gui) for an overview of how the library is structured.

## Showcase & Examples

Expand Down
4 changes: 2 additions & 2 deletions ReactiveExample/LoginView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public LoginView (LoginViewModel viewModel)

login
.Events ()
.Accept
.Accepting
.InvokeCommand (ViewModel, x => x.Login)
.DisposeWith (_disposable);
})
Expand All @@ -120,7 +120,7 @@ public LoginView (LoginViewModel viewModel)

clear
.Events ()
.Accept
.Accepting
.InvokeCommand (ViewModel, x => x.ClearCommand)
.DisposeWith (_disposable);
})
Expand Down
2 changes: 1 addition & 1 deletion SelfContained/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public ExampleWindow ()
};

// When login button is clicked display a message popup
btnLogin.Accept += (s, e) =>
btnLogin.Accepting += (s, e) =>
{
if (userNameText.Text == "admin" && passwordText.Text == "password")
{
Expand Down
2 changes: 1 addition & 1 deletion SelfContained/SelfContained.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PackageReference Include="Terminal.Gui" Version="[2.0.0-pre.1788,3)" />
<PackageReference Include="Terminal.Gui" Version="2.0.0" />
<TrimmerRootAssembly Include="Terminal.Gui" />
</ItemGroup>

Expand Down
8 changes: 7 additions & 1 deletion Terminal.Gui/Application/Application.Driver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static partial class Application // Driver abstractions

/// <summary>
/// Gets or sets whether <see cref="Application.Driver"/> will be forced to output only the 16 colors defined in
/// <see cref="ColorName"/>. The default is <see langword="false"/>, meaning 24-bit (TrueColor) colors will be output
/// <see cref="ColorName16"/>. The default is <see langword="false"/>, meaning 24-bit (TrueColor) colors will be output
/// as long as the selected <see cref="ConsoleDriver"/> supports TrueColor.
/// </summary>
[SerializableConfigurationProperty (Scope = typeof (SettingsScope))]
Expand All @@ -26,4 +26,10 @@ public static partial class Application // Driver abstractions
/// </remarks>
[SerializableConfigurationProperty (Scope = typeof (SettingsScope))]
public static string ForceDriver { get; set; } = string.Empty;

/// <summary>
/// Collection of sixel images to write out to screen when updating.
/// Only add to this collection if you are sure terminal supports sixel format.
/// </summary>
public static List<SixelToRender> Sixel = new List<SixelToRender> ();
}
51 changes: 41 additions & 10 deletions Terminal.Gui/Application/Application.Initialization.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#nullable enable
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;

Expand Down Expand Up @@ -38,7 +39,6 @@ public static partial class Application // Initialization (Init/Shutdown)
[RequiresDynamicCode ("AOT")]
public static void Init (ConsoleDriver? driver = null, string? driverName = null) { InternalInit (driver, driverName); }

internal static bool IsInitialized { get; set; }
internal static int MainThreadId { get; set; } = -1;

// INTERNAL function for initializing an app with a Toplevel factory object, driver, and mainloop.
Expand All @@ -58,20 +58,20 @@ internal static void InternalInit (
bool calledViaRunT = false
)
{
if (IsInitialized && driver is null)
if (Initialized && driver is null)
{
return;
}

if (IsInitialized)
if (Initialized)
{
throw new InvalidOperationException ("Init has already been called and must be bracketed by Shutdown.");
}

if (!calledViaRunT)
{
// Reset all class variables (Application is a singleton).
ResetState ();
ResetState (ignoreDisposed: true);
}

Navigation = new ();
Expand All @@ -80,6 +80,16 @@ internal static void InternalInit (
if (driver is { })
{
Driver = driver;

if (driver is FakeDriver)
{
// We're running unit tests. Disable loading config files other than default
if (Locations == ConfigLocations.All)
{
Locations = ConfigLocations.DefaultOnly;
Reset ();
}
}
}

// Start the process of configuration management.
Expand All @@ -88,7 +98,12 @@ internal static void InternalInit (
// valid after a Driver is loaded. In this case we need just
// `Settings` so we can determine which driver to use.
// Don't reset, so we can inherit the theme from the previous run.
string previousTheme = Themes?.Theme ?? string.Empty;
Load ();
if (Themes is { } && !string.IsNullOrEmpty (previousTheme) && previousTheme != "Default")
{
ThemeManager.SelectedTheme = previousTheme;
}
Apply ();

AddApplicationKeyBindings ();
Expand Down Expand Up @@ -157,14 +172,14 @@ internal static void InternalInit (

SupportedCultures = GetSupportedCultures ();
MainThreadId = Thread.CurrentThread.ManagedThreadId;
bool init = IsInitialized = true;
bool init = Initialized = true;
InitializedChanged?.Invoke (null, new (init));
}

private static void Driver_SizeChanged (object? sender, SizeChangedEventArgs e) { OnSizeChanging (e); }
private static void Driver_KeyDown (object? sender, Key e) { OnKeyDown (e); }
private static void Driver_KeyUp (object? sender, Key e) { OnKeyUp (e); }
private static void Driver_MouseEvent (object? sender, MouseEvent e) { OnMouseEvent (e); }
private static void Driver_KeyDown (object? sender, Key e) { RaiseKeyDownEvent (e); }
private static void Driver_KeyUp (object? sender, Key e) { RaiseKeyUpEvent (e); }
private static void Driver_MouseEvent (object? sender, MouseEventArgs e) { RaiseMouseEvent (e); }

/// <summary>Gets of list of <see cref="ConsoleDriver"/> types that are available.</summary>
/// <returns></returns>
Expand Down Expand Up @@ -198,12 +213,28 @@ internal static void InternalInit (
public static void Shutdown ()
{
// TODO: Throw an exception if Init hasn't been called.

bool wasInitialized = Initialized;
ResetState ();
PrintJsonErrors ();
bool init = IsInitialized;
InitializedChanged?.Invoke (null, new (in init));

if (wasInitialized)
{
bool init = Initialized;
InitializedChanged?.Invoke (null, new (in init));
}
}

/// <summary>
/// Gets whether the application has been initialized with <see cref="Init"/> and not yet shutdown with <see cref="Shutdown"/>.
/// </summary>
/// <remarks>
/// <para>
/// The <see cref="InitializedChanged"/> event is raised after the <see cref="Init"/> and <see cref="Shutdown"/> methods have been called.
/// </para>
/// </remarks>
public static bool Initialized { get; internal set; }

/// <summary>
/// This event is raised after the <see cref="Init"/> and <see cref="Shutdown"/> methods have been called.
/// </summary>
Expand Down
Loading