Commit Graph

3615 Commits

Author SHA1 Message Date
BDisp
47ca62d5f2 ToString must return the Pos/Dim class name. Also Target.ToString() is not needed because they already overridden the ToString method. 2023-02-27 14:07:29 +00:00
BDisp
534d4ea390 Fixes Revert "Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)" committed twice on 6bb90edcbf and 28d7be721c 2023-02-27 13:37:01 +00:00
BDisp
17d1235d62 Merged v1_setrelativelayout_improvement into v1_setrelativelayout_improvement-fix. 2023-02-27 12:42:50 +00:00
BDisp
006f57b0eb Fixes the Clear method. 2023-02-27 12:09:11 +00:00
BDisp
932aca89eb Merge #2382 into #2379. 2023-02-27 12:09:10 +00:00
BDisp
c6183c7658 Added one more condition to be consistent with others. 2023-02-27 12:09:10 +00:00
BDisp
288d81b781 Allows a subview reference the superview of the subview superview. 2023-02-27 12:09:09 +00:00
Tigger Kindel
c9cbacb0d8 Fixed Borders on XXX Pos.Center bugs 2023-02-27 12:09:09 +00:00
Tigger Kindel
fdd5c6b2a2 Fixed Border Comparsion Pos.Center bugs 2023-02-27 12:09:08 +00:00
Tigger Kindel
c192f8d4c4 re-merged changes lost from #2345 2023-02-27 12:09:08 +00:00
Tig Kindel
012100680e Pos.Combine unit tests 2023-02-27 12:09:07 +00:00
Tig Kindel
7fc6a8536a restored Generic.cs 2023-02-27 12:09:06 +00:00
Tig Kindel
7bee36ebd1 fixed more bugs exposed by Pos.Combine bugfix 2023-02-27 12:09:06 +00:00
Tig Kindel
93b8dfdad1 fixing bugs caused by Pos.Combine bugfix 2023-02-27 12:09:05 +00:00
Tig Kindel
6ba49314c8 merged from develop after accident 2023-02-27 12:09:04 +00:00
Tig Kindel
feae3b675d merged from develop after accident 2023-02-27 12:09:04 +00:00
Tig Kindel
43221327ee fixed da bug; also fixed pwsh clipboard tests 2023-02-27 12:09:03 +00:00
Tig Kindel
abf07fbbf9 Refactored SetRelativeLayout etc; looks good but tests fail 2023-02-27 12:09:03 +00:00
Tig Kindel
28d7be721c Revert "Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)"
This reverts commit c85ff954aa.
2023-02-27 12:08:49 +00:00
Tigger Kindel
a9cd9ba2e7 Fixed Borders on XXX Pos.Center bugs 2023-02-25 17:37:57 -07:00
Tigger Kindel
0e8cd6332a Fixed Border Comparsion Pos.Center bugs 2023-02-25 17:32:38 -07:00
Tigger Kindel
5bb350b7f1 re-merged changes lost from #2345 2023-02-25 17:22:45 -07:00
Tig
eaede47190 Merge branch 'develop' into v1_setrelativelayout_improvement 2023-02-25 17:05:32 -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
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
Tig Kindel
7fbece9dc4 Pos.Combine unit tests 2023-02-24 12:52:43 -08:00
Tig Kindel
a0c44b7cdb restored Generic.cs 2023-02-25 07:42:33 +13:00
Tig Kindel
c11b4e3678 fixed more bugs exposed by Pos.Combine bugfix 2023-02-25 07:40:40 +13:00
Tig Kindel
eb3af67027 fixing bugs caused by Pos.Combine bugfix 2023-02-25 07:15:41 +13:00
Tig Kindel
c73292378b merged from develop after accident 2023-02-25 05:45:26 +13:00
Tig Kindel
d04bf94c74 merged from develop after accident 2023-02-25 05:42:43 +13:00
Tig Kindel
7d36a8490e Merge branch 'develop' into v1_setrelativelayout_improvments 2023-02-25 05:39:02 +13:00
Tig Kindel
121941497e fixed da bug; also fixed pwsh clipboard tests 2023-02-24 20:31:04 +13:00
Tig Kindel
a8b75b6219 Refactored SetRelativeLayout etc; looks good but tests fail 2023-02-24 20:15:02 +13:00
Tig Kindel
b5de3e6916 Merge branch 'develop' of tig:gui-cs/Terminal.Gui into develop 2023-02-21 14:25:10 +13: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
Tig Kindel
2b0adf072d Merge branch 'visual_style_manager' into v2_config_manager 2023-02-21 13:58:58 +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
Tig Kindel
6bb90edcbf Revert "Illustrates #2331 (Scrollview not respecting clip) does not reproduce (#2332)"
This reverts commit c85ff954aa.
2023-02-21 11:53:10 +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
Tig
81d3ad8aeb Merge pull request #2352 from tznind/animation
Adds Animation Scenario
2023-02-20 22:29:49 +13:00
Tig
3ecf42a61c Merge pull request #2344 from tznind/line-canvas-fix-offsets
Fixes 2343 - LineCanvas not respecting X and Y of clip bounds
2023-02-20 22:17:17 +13:00
Thomas Nind
1e5ab49827 Merge branch 'develop' into line-canvas-fix-offsets 2023-02-19 17:06:21 +00:00
Thomas
0e84090c31 Add caching and comments 2023-02-18 07:56:45 +00:00
Thomas
8371a74bf9 CC attribution 2023-02-17 23:18:20 +00:00
Thomas
2b0d14f41f Resizing 2023-02-17 23:12:48 +00:00
Thomas
db38b35bb7 spinning world 2023-02-17 22:56:02 +00:00
tznind
c28d97f203 Add gif 2023-02-17 22:10:40 +00:00
tznind
81a892ad11 Add image scenario 2023-02-17 22:09:29 +00:00