Commit Graph

55 Commits

Author SHA1 Message Date
Tig
6851b42a49 Fixes #2921 - MainLoop refactoring (#2922)
* 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
2023-10-21 08:06:04 -07:00
Tigger Kindel
b8c4c792f7 Updated packages 2023-10-13 23:58:49 -06:00
Tig
816eb2a183 Updates project references for v2 (#2697)
* Updates project refs
2023-06-07 08:26:01 -06:00
BDisp
713b2c4725 Fixes #92. Remove dependency on ustring. (#2620)
* Remove NStack and replace ustring to string.

* Add unit test and improving some code.

* Adjust code and fix all unit tests errors.

* Add XML Document and move the Rune folder into the Text folder.

* Improve unit tests with byte array on DecodeRune and DecodeLastRune.

* Fix unit test.

* 😂Code review

* Reduce unit tests code.

* Change StringExtensions.Make to StringExtensions.ToString and added some more unit tests.

* Fix merge errors.

* Remove GetTextWidth and calls replaced with StringExtensions.GetColumns.

* Hack to use UseSystemConsole passed in the command line arguments.

* Revert "Hack to use UseSystemConsole passed in the command line arguments."

This reverts commit b74d11c786.

* Remove Application.UseSystemConsole from the config file.

* Fix errors related by removing UseSystemConsole from the config file.

* Fixes #2633. DecodeEscSeq throw an exception if cki is null.

* Fix an exception if SelectedItem is -1.

* Set SelectedItem to 0 and remove unnecessary ToString.

* Using a unique ToString method for Rune and other for byte.

* Fix a bug where a wider rune is added with only a width of 1.

* Force the SelectedGlyph is the one that was typed after jumpList is executed.

* Added more InlineData to RuneTests.

* Reducing significantly the code by using Theory attribute in the TextFormatterTests.

* Override PositionCursor to handle the CharMap cursor position.

* Fix merge errors.

* Minor tweaks to API docs

---------

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2023-05-20 19:35:32 +02:00
Tig
a637f8a29c Fixes #2486 - Removes old Border and fixes a litany of related things (#2525)
* Added View.BorderStyle and renamed BorderStyle enum to LineStyle

* Fixed a lot of things and broke everything else

* Fixed things

* Updated DialogTests

* Updates including Rect unit tests

* Fixed Dialog & MessagBox tests

* Fixed AllviewsTester bug

* Fixed AllviewsTester bug

* Removed Border class

* Renamed View privates with _

* Removed comments in MessageBox.cs
2023-04-10 17:34:52 -06:00
Tigger Kindel
9a18e30c1a merged ; pretty broken 2023-03-07 09:33:02 -07:00
Tigger Kindel
de7d58217c changed version info to 2.0 2023-03-03 08:18:45 -07:00
BDisp
1d2dc40c8a Fixes #2305. Improves the handling of escape sequence. (#2375)
* Changed ansi esc sequence used on exit.

* Changed ansi esc sequence used on exit.

* Improves HeightAsBuffer although currently only works on Windows.

* Fixes #2267. Toplevel.EnsureVisibleBounds throws an exception if border is null.

* Changing comment as requested.

* Fixes indentation.

* Seems not needed for now, maybe some update, comment for now.

* Renamed HeightAsBuffer to EnableConsoleScrolling and made it obsolete.

* Add comment on remarks for EnableConsoleScrolling.

* merged @bdisp's EnableConsoleScrolling PR

* Fixes buffer for Windows Terminal.

* Fixes issue in Windows Terminal on resizing causing some lines not be drawing after exceptions.

* merge #9

* merged #9

* use ESC [ ? 1047

* Tweaks with new esc codes

* Fixed curses driver to not nuke scroll buffer and to resize properly

* merge

* Cleand up netdriver escape codes

* fixed spaces->tabs

* fixed spaces->tabs

* fixed spaces->tabs

* fixed spaces->tabs

* fixed merge issue and  spaces->tabs

* fixed spaces->tabs

* fixed spaces->tabs

* fixed spaces->tabs

* fixed  build error

* removed old comments

* Resolving merge conflicts.

* Ensuring reset the EnableConsoleScrolling.

* Changing from HeightAsBuffer to EnableConsoleScrolling.

* Done requested changes.

* Reformatting.

* Rename to EscSeqReqStatus.

* Removing Console.Out.Flush ();

---------

Co-authored-by: Charlie Kindel <tig@users.noreply.github.com>
Co-authored-by: Tig Kindel <tig@kindel.com>
2023-02-25 15:30:44 -07:00
Tig Kindel
214fe97bd8 Diagnostic padding and ruler 2023-02-22 19:38:01 +13:00
Tig Kindel
d6e308966b fixing merge screwups 2023-02-07 17:03:10 +09:00
Tig Kindel
c566a66bc0 merge develop to v2 2023-02-03 23:28:58 +09:00
dependabot[bot]
2a8d3e4571 Bump ReactiveUI.Fody from 18.3.1 to 18.4.1
Bumps [ReactiveUI.Fody](https://github.com/reactiveui/reactiveui) from 18.3.1 to 18.4.1.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/18.3.1...18.4.1)

---
updated-dependencies:
- dependency-name: ReactiveUI.Fody
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-03 18:56:01 +00:00
dependabot[bot]
0bd043da00 Bump ReactiveUI from 18.3.1 to 18.4.1
Bumps [ReactiveUI](https://github.com/reactiveui/reactiveui) from 18.3.1 to 18.4.1.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/18.3.1...18.4.1)

---
updated-dependencies:
- dependency-name: ReactiveUI
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-24 14:09:04 +00:00
Charlie Kindel
0ddf097820 setting up v2.0 branch 2022-10-16 07:29:31 -06:00
dependabot[bot]
8ff4631e9a Bump ReactiveMarbles.ObservableEvents.SourceGenerator
Bumps [ReactiveMarbles.ObservableEvents.SourceGenerator](https://github.com/reactivemarbles/ObservableEvents) from 1.1.4 to 1.2.3.
- [Release notes](https://github.com/reactivemarbles/ObservableEvents/releases)
- [Commits](https://github.com/reactivemarbles/ObservableEvents/compare/1.1.4...1.2.3)

---
updated-dependencies:
- dependency-name: ReactiveMarbles.ObservableEvents.SourceGenerator
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-27 14:51:59 +00:00
Tig Kindel
26d2353e40 Prep for Release v1.7.0 (#1910)
* prepping for v1.7 release

* Updated release notes for v1.7

* updated rel notes

* regen docs

* trying to fix view source

* reactive ui update
2022-07-28 05:39:06 -07:00
dependabot[bot]
df8d2dae72 Bump ReactiveUI from 18.2.5 to 18.3.1 (#1909)
Bumps [ReactiveUI](https://github.com/reactiveui/reactiveui) from 18.2.5 to 18.3.1.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/18.2.5...18.3.1)

---
updated-dependencies:
- dependency-name: ReactiveUI
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
2022-07-27 21:41:46 -07:00
dependabot[bot]
d8fc1d0e85 Bump ReactiveUI from 18.1.8 to 18.2.5 (#1835)
Bumps [ReactiveUI](https://github.com/reactiveui/reactiveui) from 18.1.8 to 18.2.5.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/18.1.8...18.2.5)

---
updated-dependencies:
- dependency-name: ReactiveUI
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-30 19:22:26 -07:00
dependabot[bot]
5d12c3cb83 Bump ReactiveUI from 18.0.10 to 18.1.8 (#1781)
Bumps [ReactiveUI](https://github.com/reactiveui/reactiveui) from 18.0.10 to 18.1.8.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/18.0.10...18.1.8)

---
updated-dependencies:
- dependency-name: ReactiveUI
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-14 09:00:07 -07:00
Charlie Kindel
07ce68cd0f Updated version numbers 2022-05-29 10:18:16 +12:00
Tig Kindel
2971fc9134 Fixes #769. Include PDB symbols on Nuget (#1747)
* trying to get nuget symbols to work

* fixed nuget sybmols?
2022-05-26 19:33:31 -07:00
Tig Kindel
a95e06c15d Fixes #1741. Use gitversion instead of minver (#1746) 2022-05-26 16:36:50 -07:00
dependabot[bot]
5cec8bf10b Bump ReactiveUI.Fody from 17.1.17 to 18.0.10
Bumps [ReactiveUI.Fody](https://github.com/reactiveui/reactiveui) from 17.1.17 to 18.0.10.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/17.1.17...18.0.10)

---
updated-dependencies:
- dependency-name: ReactiveUI.Fody
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-27 16:55:03 +00:00
dependabot[bot]
c0a8eb1941 Bump ReactiveUI from 18.0.7 to 18.0.10
Bumps [ReactiveUI](https://github.com/reactiveui/reactiveui) from 18.0.7 to 18.0.10.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/18.0.7...18.0.10)

---
updated-dependencies:
- dependency-name: ReactiveUI
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-27 14:09:26 +00:00
dependabot[bot]
6bb1f512a0 Bump ReactiveUI from 17.1.17 to 18.0.7
Bumps [ReactiveUI](https://github.com/reactiveui/reactiveui) from 17.1.17 to 18.0.7.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/17.1.17...18.0.7)

---
updated-dependencies:
- dependency-name: ReactiveUI
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 14:34:27 +00:00
BDisp
b28e8186dc Added mouse support and more features to the HexView. (#1571)
* Added mouse support and more features.

* Updating NuGet packages.

* Putting text on the same line.

* Added a read only Position, CursorPosition properties and events.

* Added a stream argument to ApplyEdits to only save the edits.

* Ignore control characters and other special keys.
2022-02-06 14:34:15 -08:00
BDisp
646a88e4ba Adding Application.Shutdown and updating ReactiveUI.Fody. (#1550)
Thanks.
2021-12-19 08:18:35 -08:00
dependabot[bot]
0decb64514 Bump ReactiveUI from 14.2.1 to 17.1.9 (#1541)
Bumps [ReactiveUI](https://github.com/reactiveui/reactiveui) from 14.2.1 to 17.1.9.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/14.2.1...17.1.9)

---
updated-dependencies:
- dependency-name: ReactiveUI
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-18 06:03:01 -08:00
BDisp
1b3668ca70 Upgrading to Net6.0 (#1515) 2021-12-18 05:26:00 -08:00
dependabot[bot]
264c4cc163 Bump ReactiveMarbles.ObservableEvents.SourceGenerator (#1449)
Bumps [ReactiveMarbles.ObservableEvents.SourceGenerator](https://github.com/reactivemarbles/ObservableEvents) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/reactivemarbles/ObservableEvents/releases)
- [Commits](https://github.com/reactivemarbles/ObservableEvents/compare/1.1.3...1.1.4)

---
updated-dependencies:
- dependency-name: ReactiveMarbles.ObservableEvents.SourceGenerator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-25 23:50:49 -07:00
Artyom V. Gorchakov
8eb719af1d feature: Don't pull Terminal.Gui from NuGet, use ReactiveMarbles.ObservableEvents (#1440)
* Don't pull Terminal.Gui from NuGet, use ReactiveMarbles source generator

* Target net5.0
2021-08-26 07:38:02 -07:00
sucrose
618714cc69 Fix version conflicts caused by PR#1412 (#1415) 2021-08-11 02:58:35 -07:00
Charlie Kindel
f6d3fbc3b8 patched reactive sample dependencies refs 2021-07-21 08:46:30 -07:00
dependabot[bot]
dbf4387864 Bump ReactiveUI.Fody from 13.3.2 to 14.1.1
Bumps [ReactiveUI.Fody](https://github.com/reactiveui/reactiveui) from 13.3.2 to 14.1.1.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/13.3.2...14.1.1)

---
updated-dependencies:
- dependency-name: ReactiveUI.Fody
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 14:08:04 +00:00
dependabot[bot]
08db0230fb Update Terminal.Gui requirement from 1.0.0.* to 1.1.1.*
Updates the requirements on [Terminal.Gui](https://github.com/migueldeicaza/gui.cs) to permit the latest version.
- [Release notes](https://github.com/migueldeicaza/gui.cs/releases)
- [Commits](https://github.com/migueldeicaza/gui.cs/compare/v1.0.0...v1.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 07:42:57 +00:00
dependabot[bot]
e9b3289643 Bump ReactiveUI from 13.3.1 to 13.3.2 (#1301)
Bumps [ReactiveUI](https://github.com/reactiveui/reactiveui) from 13.3.1 to 13.3.2.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/13.3.1...13.3.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 11:31:01 -07:00
dependabot[bot]
d062d0cc2a Bump ReactiveUI.Fody from 13.2.18 to 13.3.2 (#1300)
Bumps [ReactiveUI.Fody](https://github.com/reactiveui/reactiveui) from 13.2.18 to 13.3.2.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/13.2.18...13.3.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 11:30:05 -07:00
dependabot[bot]
4059c7eb39 Bump ReactiveUI from 13.2.18 to 13.3.1 (#1298)
Bumps [ReactiveUI](https://github.com/reactiveui/reactiveui) from 13.2.18 to 13.3.1.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/13.2.18...13.3.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 14:38:36 -07:00
dependabot[bot]
74098ea8f6 Update Terminal.Gui requirement from 1.0.0-pre.* to 1.0.0.* (#1270)
Updates the requirements on [Terminal.Gui](https://github.com/migueldeicaza/gui.cs) to permit the latest version.
- [Release notes](https://github.com/migueldeicaza/gui.cs/releases)
- [Commits](https://github.com/migueldeicaza/gui.cs/compare/v1.0.0-pre.1...v1.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 10:34:15 -07:00
dependabot[bot]
dcd12c3616 Bump ReactiveUI.Fody from 13.0.1 to 13.2.18 (#1225)
Bumps [ReactiveUI.Fody](https://github.com/reactiveui/reactiveui) from 13.0.1 to 13.2.18.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/13.0.1...13.2.18)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-18 18:03:08 -07:00
dependabot[bot]
58e8de50b0 Bump Pharmacist.MsBuild from 2.0.6 to 2.0.8 (#1224)
Bumps [Pharmacist.MsBuild](https://github.com/reactiveui/Pharmacist) from 2.0.6 to 2.0.8.
- [Release notes](https://github.com/reactiveui/Pharmacist/releases)
- [Commits](https://github.com/reactiveui/Pharmacist/compare/2.0.6...2.0.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-18 18:02:59 -07:00
dependabot[bot]
50eadb8588 Bump ReactiveUI from 13.0.1 to 13.2.18 (#1221)
Bumps [ReactiveUI](https://github.com/reactiveui/reactiveui) from 13.0.1 to 13.2.18.
- [Release notes](https://github.com/reactiveui/reactiveui/releases)
- [Commits](https://github.com/reactiveui/reactiveui/compare/13.0.1...13.2.18)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-18 18:01:57 -07:00
dependabot[bot]
eb495606f3 Bump Pharmacist.Common from 2.0.6 to 2.0.8 (#1220)
Bumps [Pharmacist.Common](https://github.com/reactiveui/Pharmacist) from 2.0.6 to 2.0.8.
- [Release notes](https://github.com/reactiveui/Pharmacist/releases)
- [Commits](https://github.com/reactiveui/Pharmacist/compare/2.0.6...2.0.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-18 18:01:45 -07:00
BDisp
b7f91af247 Fixes #1034. The NuGet packages need to be updated. 2020-12-09 11:43:41 +00:00
BDisp
97ea0317ae Fixes #957. Terminal.Gui nuget package in Reactive example version. 2020-10-18 19:40:05 +01:00
Charlie Kindel
dd92a07fb0 updated readmes; bumped nuget version 2020-10-01 09:23:38 -07:00
Artyom
3b3893e0e0 Fix TerminalScheduler.cs 2020-10-01 18:14:20 +03:00
Artyom
49e9053dda Use latest Terminal.Gui 2020-10-01 18:05:20 +03:00
Artyom
57bfefd4a3 Correct the scheduler 2020-10-01 18:04:23 +03:00
Artyom
ae8276a55b Add a few comments 2020-10-01 13:47:47 +03:00