Commit Graph

136 Commits

Author SHA1 Message Date
Tig Kindel
f41a717039 Attempting to publish v2 docs via repository_dispatch3 2023-12-17 12:56:26 -07:00
Tig Kindel
500c15a6a6 Attempting to publish v2 docs via repository_dispatch2 2023-12-17 12:51:54 -07:00
Tig Kindel
4e5631d021 Attempting to publish v2 docs via repository_dispatch 2023-12-17 12:50:30 -07:00
Tig Kindel
e1c2047b8b Attempting to publish v2 docs via repository_dispatch 2023-12-17 12:49:57 -07:00
Tig
dcb3b359ad Fixes #2926 - Refactor KeyEvent and KeyEventEventArgs to simplify (#2927)
* Adds basic MainLoop unit tests

* Remove WinChange action from Curses

* Remove WinChange action from Curses

* Remove ProcessInput action from Windows MainLoop

* Simplified MainLoop/ConsoleDriver by making MainLoop internal and moving impt fns to Application

* Modernized Terminal resize events

* Modernized Terminal resize events

* Removed un used property

* for _isWindowsTerminal devenv->wininit; not sure what changed

* Modernized mouse/keyboard events (Action->EventHandler)

* Updated OnMouseEvent API docs

* Using WT_SESSION to detect WT

* removes hacky GetParentProcess

* Updates to fix #2634 (clear last line)

* removes hacky GetParentProcess2

* Addressed mac resize issue

* Addressed mac resize issue

* Removes ConsoleDriver.PrepareToRun, has Init return MainLoop

* Removes unneeded Attribute methods

* Removed GetProcesssName

* Removed GetProcesssName

* Refactored KeyEvent and KeyEventEventArgs into a single class

* Revert "Refactored KeyEvent and KeyEventEventArgs into a single class"

This reverts commit 88a00658db.

* Fixed key repeat issue; reverted stupidity on 1049/1047 confusion

* Updated CSI API Docs

* merge

* Rearranged Event.cs to Keyboard.cs and Mouse.cs

* Renamed KeyEventEventArgs KeyEventArgs

* temp renamed KeyEvent OldKeyEvent

* Merged KeyEvent into KeyEventArgs

* Renamed Application.ProcessKey members

* Renamed Application.ProcessKey members

* Renamed Application.ProcessKey members

* Added Responder.KeyPressed

* Removed unused references

* Fixed arg naming

* InvokeKeybindings->InvokeKeyBindings

* InvokeKeybindings->InvokeKeyBindings

* Fixed unit tests fail

* More progress on refactoring key input; still broken and probably wrong

* Moved OnKeyPressed out of Responder and made ProcessKeyPrssed non-virtual

* Updated API docs

* Moved key handling from Responder to View

* Updated API docs

* Updated HotKey API docs

* Updated shortcut API docs

* Fixed responder unit tests

* Removed Shortcut from View as it is not used

* Removed unneeded OnHotKey override from Button

* Fixed BackTab logic

* Button now uses Key Bindings exclusively

* Button now uses Key Bindings exclusively

* Updated keyboard.md docs

* Fixed unit tests to account for Toplevel handling default button

* Added View.InvokeCommand API

* Modernized RadioGroup

* Removed ColdKey

* Modernized (partially) StatusBar

* Worked around FileDialog issue with Ctrl-F

* Fixed driver unit test; view must be focused to reciev key pressed

* Application code cleanup

* Start on updaing menu

* Menu now mostly works

* Menu Select refinement

* Fixed known menu bugs!

* Enabled HotKey to cause focus- experimental

* Fixes #3022 & adds unit test to prove it

* Actually Fixes #3022 & adds unit test to prove it

* Working through hotkey issues

* Misc fixes

* removed hot/cold key stuff from Keys scenario

* Fixed scenarios

* Simplified shortcut string handling

* Modernized Checkbox

* Modernized TileView

* Updated API docs

* Updated API docs

* attempting to publish v2 docs

* Revert "attempting to publish v2 docs"

This reverts commit 59dcec111b.

* Playing with api docs

* Removed Key.BackTab

* Removed Caps/Scroll/Numlock

* Partial removal of keymodifiers - unit tests pass

* Partial removal of keymodifiers - broke netdriver somewhere

* WindowsDriver & added KeyEventArgsTests

* Fixing menu shortcut/hotkeys - broke Menu.cs into separate files

* Fixed MenuBar!

* Finished modernizing Menu/MenuBar

* Removed Key.a-z. Broke lots of stuff

* checkout@v4

* progress on key mapping and formatting

* VK tests are still failing

* Fixed some unit tests

* Added Hotkey and Keybinding unit tests

* fixed unit test

* All unit tests pass again...

* Fixed broken unit tests

* KeyEventArgs.KeyValue -> AsRune

* Fixed bugs. Still some broken

* Added KeyEventArgs.IsAlpha. Added KeyEventArgs.cast ops. Fixed bugs. Unit tests pass

* Fixed WindowsDriver

* Oops.

* Refactoring based on bdisp's help. Not complete!

* removed calling into subviews from OnKeyBindings

* removed calling into subviews from OnKeyBindings

* Improved View KeyEvent unit tests

* More hotkey unit tests

* BIg change - Got rid of KeyPress w/in Application/Drivers

* Unit tests now pass again

* Refreshed API docs

* Better HotKey logic. More progress. Getting close.

* Fixed handling of shifted chars like ö

* Minor code cleanup

* Minor code cleanup2

* Why is build Action failing?

* Why is build Action failing??

* upgraded to .net8 to try to fix weird CI/CD build errors

* upgraded to .net8 to try to fix weird CI/CD build errors2

* Disabling TextViewTests to diagnose build errors

* reenable TextViewTests to diagnose build errors

* Arrrrrrg

* Merged v2_develop

* Fixed uppercase accented keys in WindowsDriver

* Fixed key binding api docs

* Experimental impl of CommandScope.SubViews for MenuBar

* Removed dead code from application.cs

* Removed dead code from application.cs

* Removed dead code from ConsoleDriver.cs

* Cleaned up some key binding stuff

* Disabled Alt to activate menu for now

* Updated label commands

* Fixed menu bugs. Upgraded menu unit tests

* Fixed unit tests

* Working on NetDriver

* fixed netdriver

* Fixed issues called out by @bdisp CR

* fixed CursesDriver

* added todo to netdriver

* Cherry picked treeview test fix 1b415e5

* Fix NetDriver.

* CommandScope->KeyBindingScope

* Address some tznind feedback

* Refactored KeyBindings big time!

* Added key consts to KeyEventArgs and renamed Key to ConsoleDriverKey

* Fixed some API docs

* Moved ConsoleDriverKey to ConsoleDriver.cs

* Renamed Key->ConsoleDriverKey

* Renamed Key->ConsoleDriverKey

* Renamed Key->ConsoleDriverKey

* renamed file I forgot to rename before

* Updated name and API docs of KeyEventArgs.isAlpha

* Fixed issues with OnKeyUp not doing the right thing.

* Fixed MainLoop.Running never being used

* Fixed MainLoop.Running never being used - unit tests

* Claned up BUGBUG comments

* Disabled a unit test to see why ci/cd tests are failing

* Removed defunct commented code

* Removed more defunct commented code

* Re-eanbled unit test; jsut removing one test case...

* Disabled more...

* Renambed Global->Applicaton and updated scope API docs

* Disabled more unit tests...

* Removed dead code

* Disabled more unit tests...2

* Disabled more unit tests...3

* Renambed Global->Applicaton and updated scope API docs 2

* Added more KeyBinding scope tests

* Added more KeyBinding scope tests2

* ConsoleDriverKey too long. Key too ambiguous. Settled on KeyCode. (Partialy because eventually I want to intro a class named Key).

* KeyEventArgs improvements. cast to Rune must be explicit as it's lossy

* Fixed warnings

* Renamed KeyEventArgs to Key... progress on fixing broken stuff that resulted

* Fix ConsoleKeyMapping bugs.

* Fix NetDriver issue from converting a lower case to a upper case.

* Started migration to Key from KeyCode - e.g. made HotKeys all consistent.

* Fixed build warnings

* Added key defns to Key

* KeyBindings now uses Key vs. KeyCode

* Verified by tweaking UICatalog

* Fixed treeview test ... again

* Renamed ProcessKeyDown/Up to NewKeyDown/Up and OnKeyPressed to OnProcessKeyDown to make things more clear

* Added test AllViews_KeyDown_All_EventsFire unit tests and fixed a few Views that were wrong

* fixed stupid KeyUp event bug

* If key not handled, return false for datefield

* dotnet test --no-restore --verbosity diag

* dotnet test --blame

* run tests on windows

* Fix TestVKPacket unit test and move it to ConsoleKeyMappingTests.cs file.

* Remove unnecessary commented code.

* Tweaked unit tests and removed Key.BareKey

* Fixed little details and updated api docs

* updated api docs

* AddKeyBindingsForHotKey: KeyCode->Key

* Cleaned up more old KeyCode usages. Added TODOs

---------

Co-authored-by: BDisp <bd.bdisp@gmail.com>
2023-12-16 12:04:23 -07:00
Tigger Kindel
df37fa6841 No longer publish api docs from v2_develop; v2 is published via the Terminal.GuiV2Docs repo 2023-12-03 08:38:50 -07:00
Tigger Kindel
9d97ea9c8a Tweaked yml 2023-12-03 08:28:25 -07:00
Tig Kindel
154dd75c3b new docfx! 2023-12-02 19:15:25 -07:00
Tig Kindel
b643e48104 more docfx stuff 2023-12-02 10:07:58 -07:00
Tigger Kindel
0d5b89ba25 Attempt to Publish v2 API to diff url2 2023-12-01 16:21:52 -07:00
Tigger Kindel
539ad47af2 Attempt to Publish v2 API to diff url 2023-12-01 16:06:43 -07:00
Tigger Kindel
6395d29c8c Attempt to Publish v2 API docs 2 2023-12-01 15:52:12 -07:00
Tigger Kindel
561efb1a73 Attempt to Publish v2 API docs 2023-12-01 15:40:10 -07:00
Tigger Kindel
a6f6cf90f0 Attempt to Publish v2 API docs with new workflow 3 2023-12-01 15:37:27 -07:00
Tigger Kindel
e767707e21 Attempt to Publish v2 API docs with new workflow 3 2023-12-01 15:27:46 -07:00
Tigger Kindel
7b9ea816a7 Attempt to Publish v2 API docs with new workflow 2023-12-01 14:58:58 -07:00
Tigger Kindel
72427353d5 port publish.yml from develop 2023-09-03 08:47:47 -06:00
Tig
0df485a890 Fixes #666. Refactor ConsoleDrivers to simplify and remove duplicated code (#2612)
* Added ClipRegion; cleaned up driver code

* clip region unit tests

* api docs

* Moved color stuff from ConsoleDriver to Color.cs

* Removes unused ConsoleDriver APIs

* Code cleanup and Removes unused ConsoleDriver APIs

* Code cleanup and Removes unused ConsoleDriver APIs

* Work around https://github.com/gui-cs/Terminal.Gui/issues/2610

* adjusted unit tests

* initial commit

* Made Rows, Cols, Top, Left virtual

* Made Clipboard non-virtual

* Made EnableConsoleScrolling  non-virtual

* Made Contents non-virtual

* Pulled Row/Col up

* Made MoveTo virtual; fixed stupid FakeDriver cursor issue

* Made CurrentAttribute non-virtual

* Made SetAttribute  non-virtual

* Moved clipboard code out

* Code cleanup

* Removes dependecy on NStack from ConsoleDrivers - WIP

* Fixed unit tests

* Fixed unit tests

* Added list of unit tests needed

* Did some perf testing; tweaked code and charmap to address

* Brough in code from PR #2264 (but commented)

* Tons of code cleanup

* Fighting with ScrollView

* Fixing bugs

* Fixed TabView tests

* Fixed View.Visible test that was not really working

* Fixed unit tests

* Cleaned up clipboard APIs in attempt to track down unit test failure

* Add Cut_Preserves_Selection test

* Removed invalid code

* Removed invalid test code; unit tests now pass

* EscSeq* - Adjusted naming, added more sequences, made code more consistent, simplified, etc...

* Added CSI_SetGraphicsRendition

* NetDriver code cleanup

* code cleanup

* Cleaned up color handling in NetDriver

* refixed tabview unit test

* WindowsDriver color code cleanup

* WindowsDriver color code cleanup

* CursesDriver color code cleanup

* CursesDriver - Adding _BOLD has no effect. Further up the stack we cast the return of ColorToCursesColor from int to short and the _BOLD values don't fit in a short.

* CursesDriver color code - make code more accurate

* CursesDriver color code - make code more accurate

* Simplified ConsoleDriver.GetColors API

* Simplified ConsoleDriver.GetColors API further

* Improved encapslation of Attribute; prep for TrueColor & other attributes like blink

* Fixes #2249. CharacterMap isn't refreshing well non-BMP code points on scroll.

* Use GetRange to take some of the runes before convert to string.

* Attempting to fix unit tests not being cleaned up

* Fixes #2658 - ConsoleDriver.IsRuneSupported

* Fixes #2658 - ConsoleDriver.IsRuneSupported (for WindowsDriver)

* Check all the range values and not only the max value.

* Reducing code.

* Fixes #2674 - Unit test process doesn't exit

* Changed Cell to support IsDirty and list of Runes

* add support for rendering TrueColor output on Windows merging veeman & tznind code

* add colorconverter changes

* fixed merged v2_develop

* Fixing merge bugs

* Fixed merge bugs

* Fixed merge bugs - all unit tests pass

* Debugging netdriver

* More netdriver diag

* API docs for escutils

* Update unicode scenario to stress more stuff

* Contents: Now a 2D array of Cells; WIP

* AddRune and ClearContents no longer virtual/abstract

* WindowsDriver renders correctly again

* Progress on Curses

* Progress on Curses

* broke windowsdriver

* Cleaned up FakeMainLoop

* Cleaned up some build warnings

* Removed _init from AutoInitShutdown as it's not needed anymore

* Removed unused var

* Removed unused var

* Fixed nullabiltiy warning in LineCanvas

* Fixed charmap crash

* Fixes #2758 in v2

* Port testonfail fix to v2

* Remove EnableConsoleScrolling

* Backport #2764 from develop (clear last line)

* Remove uneeded usings

* Progress on unicode

* Merged in changes from PR #2786, Fixes #2784

* revamp charmap rendering

* Charmap option to show glyph widths

* Fixed issue with wide glpyhs being overwritten

* Fixed charmap startcodepoint change issue

* Added abiltiy to see ncurses verison/lib

* Fought with CursesDriver; giving up for now. See notes.

* Leverage Wcwidth nuget library instaed of our own tables

* enhanced charmap Details dialog

* Final attempt at fixing curses

---------

Co-authored-by: BDisp <bd.bdisp@gmail.com>
Co-authored-by: adstep <stephensonadamj@gmail.com>
2023-08-09 14:28:36 -06:00
Tigger Kindel
01b11f4273 Back to 6.x 2023-06-08 08:17:06 -06:00
Tigger Kindel
4ee3f0b704 --non-interactive 2023-06-08 08:02:02 -06:00
Tigger Kindel
68a0385bc8 Back to 5.x 2023-06-08 07:59:08 -06:00
Tigger Kindel
6edb1f411c Auto unlist alpha 2023-06-08 07:57:27 -06:00
Tigger Kindel
1aa231f2bf Trying gitversion 6.x 2023-06-08 07:41:34 -06:00
Tigger Kindel
5b41a44497 removed duplicate push 2023-06-07 10:45:52 -06:00
Tigger Kindel
f8079e0711 Trying to figure out why actions aren't running on push 2023-06-07 10:40:07 -06:00
Tigger Kindel
49592597bf Trying to figure out why actions aren't running on push 2023-06-07 10:39:34 -06:00
Tigger Kindel
2cf6f2ca00 more gitversion stuff 2023-06-07 10:33:50 -06:00
Tigger Kindel
ababe9bc02 Think i have gitversion right now 2023-06-07 10:27:35 -06:00
Tigger Kindel
570de8f110 Trying to get gitversion to do what I want 2023-06-07 09:51:11 -06:00
Tigger Kindel
6b25eb010a Updated yml to just publish on new tag 2023-06-07 09:42:30 -06:00
Tigger Kindel
276d8ab5b0 Updated yml to only publish alpha tags 2023-06-07 09:31:50 -06:00
Tig
454f322667 Publishes v2 alpha on push to v2_develop (#2702)
* Comment/warning clean up

* Fixed ListView OnSelected bug caused by Bounds != Frame

* Updated yml to publish alpha
2023-06-07 09:24:01 -06:00
Tig
816eb2a183 Updates project references for v2 (#2697)
* Updates project refs
2023-06-07 08:26:01 -06:00
Tig Kindel
6190fc6411 dotnet 7.0.x 2023-05-21 15:37:44 +02:00
Tig Kindel
f358088f91 dotnet 7.0.4 2023-05-21 15:35:55 +02:00
Tig Kindel
f6460f360d Adjust yaml for easier diagnostics 2023-05-21 15:35:15 +02:00
Tigger Kindel
1b6ad72cdc Updated yml to know about v2_develop 2023-03-03 08:42:50 -07:00
Charlie Kindel
a0b36d3457 merged develop 2022-12-04 08:09:27 -07:00
dependabot[bot]
55a1d664a8 Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-14 14:07:26 +00:00
Charlie Kindel
89701920de xclip does not work on headless linux (github actions) 2022-11-08 22:08:00 -07:00
Charlie Kindel
e110740937 mucking with xclip 2022-11-08 21:04:01 -07:00
Charlie Kindel
66620a95c8 mucking with xclip 2022-11-08 21:01:55 -07:00
Charlie Kindel
601413f9ef mucking with xclip 2022-11-08 20:56:43 -07:00
Tig
abf670f0cd Merge pull request #2147 from gui-cs/dependabot/github_actions/actions/setup-dotnet-3.0.3
Bump actions/setup-dotnet from 3.0.2 to 3.0.3
2022-10-31 08:48:36 -07:00
dependabot[bot]
2d5a8e5c3e Bump actions/setup-dotnet from 3.0.2 to 3.0.3
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/v3.0.2...v3.0.3)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31 14:39:25 +00:00
dependabot[bot]
88e5a2d6c6 Bump gittools/actions from 0.9.14 to 0.9.15
Bumps [gittools/actions](https://github.com/gittools/actions) from 0.9.14 to 0.9.15.
- [Release notes](https://github.com/gittools/actions/releases)
- [Commits](https://github.com/gittools/actions/compare/v0.9.14...v0.9.15)

---
updated-dependencies:
- dependency-name: gittools/actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31 14:39:20 +00:00
Tig Kindel
da34dedaa5 Merge pull request #2092 from gui-cs/dependabot/github_actions/gittools/actions-0.9.14
Bump gittools/actions from 0.9.13 to 0.9.14
2022-10-17 21:03:21 -07:00
dependabot[bot]
c5f8150de4 Bump gittools/actions from 0.9.13 to 0.9.14
Bumps [gittools/actions](https://github.com/gittools/actions) from 0.9.13 to 0.9.14.
- [Release notes](https://github.com/gittools/actions/releases)
- [Commits](https://github.com/gittools/actions/compare/v0.9.13...v0.9.14)

---
updated-dependencies:
- dependency-name: gittools/actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-17 14:50:57 +00:00
dependabot[bot]
c505c5b770 Bump actions/setup-dotnet from 3.0.1 to 3.0.2
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/v3.0.1...v3.0.2)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-17 14:50:54 +00:00
dependabot[bot]
506a8d1692 Bump actions/setup-dotnet from 2.1.1 to 3.0.1
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 2.1.1 to 3.0.1.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/v2.1.1...v3.0.1)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 15:40:59 +00:00