Commit Graph

688 Commits

Author SHA1 Message Date
Tigger Kindel
462459bc14 Revert - Test that stopOnFail works during github action 2023-07-26 07:43:26 -06:00
Tigger Kindel
cc58771d6e Test that stopOnFail works during github action 2023-07-26 07:43:26 -06:00
Tigger Kindel
eb86825abf Test that stopOnFail works during github action 2023-07-26 07:43:26 -06:00
Tigger Kindel
c6a1f350c1 Test that stopOnFail works during github action 2023-07-26 07:43:26 -06:00
Tigger Kindel
7387761a4f xunit.runner.json now actually works 2023-07-26 07:43:26 -06:00
BDisp
9f6fcbab79 Rename to CheckBoxTests class. 2023-07-20 10:01:15 -06:00
BDisp
c5e32e102f Rename Checkbox to CheckBox. 2023-07-20 10:01:15 -06:00
BDisp
d02a5b6949 Fixes #2758. ReSharper unit tests detects errors that VS2022 don't. 2023-07-19 10:25:48 -06:00
Tigger Kindel
155e5337a9 got rid of compile warnings in tests 2023-07-19 08:37:33 -06:00
BDisp
5d733ed598 Add unit test. 2023-07-19 06:44:53 -06:00
Tigger Kindel
4ec525501c Release v1.13.0 2023-07-17 16:45:48 -07:00
BDisp
db78fe28bc Fixes #2717. Label not display fully when resizing terminal. (#2718)
* Fixes #2717. Label not display fully when resizing terminal.

* Fixes #2719. View Move and ViewToScreen shouldn't use Clipped parameter as true by default but only for cursor.

* Fixes #2720. TextFormatter.Draw shouldn't set the Driver.Clip.

* Add braces.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-07-05 16:53:27 -06:00
BDisp
ffb135c0fe Fixes #2705. ListView does not render correctly before focus. (#2707) 2023-07-05 16:47:18 -06:00
Tigger Kindel
3d9b891e6f Updates project refs 2023-06-07 09:14:06 -06:00
BDisp
58ad65f348 Fixes #2686. Border color doesn't change when changing color scheme. (#2687)
* Fixes #2686. Border color doesn't change when changing color scheme.

* Fix issue that was preventing unit test from running.

* Fixes #2688. ReadOnly TextView's broken scrolling after version update.

* keyModifiers must be reset after key up was been processed.
2023-06-07 08:27:23 -06:00
Thomas Nind
f5ca5b0781 Adds TreeView MaxDepth (#2652) 2023-05-21 23:27:01 +02:00
Tig
8287acbe89 Release v1.11 (#2639)
* Fixed global.json to use 7.0

* Adjusted clipboard unit test timeout on Windows
2023-05-19 10:24:28 +02:00
Thomas Nind
8f199cd765 Add ITreeViewFilter (#2599)
Co-authored-by: Tig <tig@users.noreply.github.com>
2023-05-10 06:37:24 +02:00
Tigger Kindel
443039a657 Release v1.10.1 2023-04-06 09:42:58 -06:00
Tigger Kindel
a7423f216c version info 2023-04-04 11:10:46 -06:00
BDisp
1525c5021e Fixes #2429. Error when replacing a word in textView. 2023-03-22 19:37:16 +00:00
dependabot[bot]
56ac3547b0 Bump ReportGenerator from 5.1.17 to 5.1.19
Bumps [ReportGenerator](https://github.com/danielpalme/ReportGenerator) from 5.1.17 to 5.1.19.
- [Release notes](https://github.com/danielpalme/ReportGenerator/releases)
- [Commits](https://github.com/danielpalme/ReportGenerator/compare/v5.1.17...v5.1.19)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-09 14:30:20 +00: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
BDisp
ed27696b9e Fixes 2342. Border: can't change border color in window by Border.BorderBrush. (#2345)
* Fixes 2342. Border: can't change border color in window by Border.BorderBrush.

* Fixes border initialization.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-02-25 15:26:04 -07:00
BDisp
9cfa78a033 Fixes #2354. View.Redraw doesn't clear itself and PositionCursor doesn't ensure focus when a prior view was disabled. (#2355)
* Fixes #2354. View should have a IgnoreHasFocusPropertyOnRedraw property to prevent unnecessary derived class.

* Removed IgnoreHasFocusPropertyOnRedraw property.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-02-21 14:23:40 +13:00
BDisp
47eb43fd6e Fixes 2368. Nested views with height of 1 not rendering correctly. (#2370) 2023-02-21 13:55:07 +13:00
Thomas Nind
40af5ed98a Adds Snake Scenario (#2353)
* Add empty snake scenario

* Move snake head around

* Snake now has a tail

* Rest of logic implementation

* Ctrl K D layout fixes

* Game gets faster as you collect more apples

* Adjust speed increase rate down

* Use white on black for snake and border and red for apple

* Fix ScenarioTests not Disposing Scenario

* Add disposes and fix to use LineCanvas.GenerateImage

* Fix stack overflow, doh!

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2023-02-21 11:59:46 +13:00
BDisp
c85ff954aa Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)
* Proves that the issue #2331 don't have reason to happen.

* fixes #2336

* Fixes #2331. ScrollView may not be honoring clip region; CustomButton shows outside

* More appropriate solution for the issue #2331.

* Start refactoring LineCanvas for mixing line style support (e.g. double into single)

* Add remaining resolvers

* Implement corner border style mixing in LineCanvas

* Refactor and simplify resolvers

* Move tests to Core folder and namespace to Terminal.Gui.CoreTests

* Fixes #2333. TextField is selecting badly a word on double click.

* Add unit test deleting a word with accented char.

* Fixes 2331. ScrollView may not be honoring clip region.

* Add a custom button scenario.

* Fixes #2350. Clipping broke (see Clipping scenario).

* Is preferable use NeedDisplay instead of Bounds.

---------

Co-authored-by: Tig Kindel <tig@users.noreply.github.com>
Co-authored-by: tznind <tznind@dundee.ac.uk>
2023-02-21 00:53:38 +13:00
Thomas Nind
1e5ab49827 Merge branch 'develop' into line-canvas-fix-offsets 2023-02-19 17:06:21 +00:00
Thomas
85a4471004 Remove the Draw method from LineCanvas and make GenerateImage easier to use 2023-02-14 22:11:18 +00:00
BDisp
721a8873b0 Removed Color.Invalid and added more unit tests. 2023-02-14 18:32:06 +00:00
Thomas
90a6c2c34c Support for drawing at an offset within client area 2023-02-13 22:08:05 +00:00
tznind
319fb8a3d4 Add TestLineCanvas_PositiveLocation 2023-02-13 08:09:37 +00:00
tznind
fd989430bc whitespace formatting fixes 2023-02-13 01:58:19 +00:00
tznind
235114e60d Fix LineCanvas not respecting X and Y of clip bounds 2023-02-13 01:54:01 +00:00
Thomas Nind
d555576a13 Merge branch 'develop' into line-canvas-style-mixing 2023-02-11 08:19:03 +00:00
Thomas
985df1d3c2 Move tests to Core folder and namespace to Terminal.Gui.CoreTests 2023-02-11 08:17:35 +00:00
Thomas
a443ec7986 Refactor and simplify resolvers 2023-02-11 00:03:37 +00:00
Thomas
f716dbe596 Implement corner border style mixing in LineCanvas 2023-02-10 23:29:07 +00:00
BDisp
29b92a3610 Add unit test deleting a word with accented char. 2023-02-09 14:12:51 +00:00
BDisp
03b20371f6 Fixes #2333. TextField is selecting badly a word on double click. 2023-02-08 19:17:15 +00:00
BDisp
5da7665e92 Fixes #2328. TextView Autocomplete triggered by cursor move. 2023-02-08 00:12:52 +00:00
Tig
ff8ac0faac Merge branch 'develop' into invisible-cursor-fix_2326 2023-02-08 07:25:36 +09:00
Tig Kindel
ea663ae113 fixing more merge screwups 2023-02-07 17:06:30 +09:00
Tig Kindel
44e734ae04 fixing merge screwups 2023-02-07 16:56:59 +09:00
Tig Kindel
2f2a4b4a42 merge fixes_2296 2023-02-07 16:47:02 +09:00
Tig Kindel
a052c6746c Merge branch 'develop' into fixes_2296_attribute_make 2023-02-07 16:35:21 +09:00
Tig Kindel
2b26ec7bfb merge fixes 2023-02-07 16:33:22 +09:00
BDisp
057bbcaea8 Fixes #2326. Invisible cursor after modal dialog. 2023-02-06 23:47:09 +00:00
Tig Kindel
a0c2369a84 forgot to merge unit tests 2023-02-06 12:01:58 +09:00