Commit Graph

666 Commits

Author SHA1 Message Date
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
Tig Kindel
e3b3151dec Merge branch 'develop' of tig:gui-cs/Terminal.Gui into develop 2023-02-06 07:29:23 +09:00
Tig
57eab6767d Merge branch 'develop' into normalize-drivers-fix_2317 2023-02-06 07:11:27 +09:00
Tig
c18d153b76 Merge branch 'develop' into fixes_2296_attribute_make 2023-02-06 07:08:44 +09:00
Tig
6a47427915 Merge pull request #2281 from tznind/line-drawer
Adds LineCanvas
2023-02-06 07:07:39 +09:00
BDisp
788eed4a4d Fixes #2317. Drivers do not normalize accented letters. 2023-02-05 00:25:14 +00:00
Tig Kindel
c566a66bc0 merge develop to v2 2023-02-03 23:28:58 +09:00
BDisp
b7791992cc Added unit test for move down/right. 2023-01-30 13:13:11 +00:00
BDisp
86d3b6db74 Locking packed tests to avoid throwing an error. 2023-01-29 22:55:00 +00:00
BDisp
cd5655fc95 Fixes #2308. Redraw passed bounds bigger than its client area. 2023-01-29 22:24:01 +00:00
Tig
27ea1e14c0 Merge branch 'develop' into line-drawer 2023-01-22 07:38:54 -07:00
tznind
ab398b93cb Make OnTabClicked fire for clicks in empty space and fix Notepad to only show context menu on right click. 2023-01-21 08:31:17 +00:00
Charlie Kindel
6cabb20f89 Tweaks to make code more clear 2023-01-20 16:31:32 -07:00
Charlie Kindel
7f563244eb Made Attribute Make more robust 2023-01-20 15:50:11 -07:00
Thomas
8b8bb2ab60 Test for TabClicked event 2023-01-20 20:05:53 +00:00
Thomas Nind
16a3c0b8ae Merge branch 'develop' into line-drawer 2023-01-18 17:25:03 +00:00
Thomas
8f41296e78 Tidy up LineCanvas
Rename Drawing Scenario
Make API simpler by directly referencing Application.Driver
2023-01-18 17:20:33 +00:00
Tig Kindel
9232a2bd59 Merge branch 'develop' into unittest_reorg 2023-01-15 19:00:22 -07:00
Tig
1bdd9014f5 Merge pull request #2270 from BDisp/ensuresvisibilityselecteditem-public-fix-2269
Fixes #2269. ListView.EnsureSelectedItemVisible must be public.
2023-01-15 18:59:21 -07:00
Tig Kindel
3dbd21ed56 Reorg of unit tests 2023-01-15 18:49:08 -07:00
Tig Kindel
fa048da358 Merge branch 'develop' into unittest_reorg 2023-01-15 18:34:14 -07:00
Tig Kindel
7454dac942 Reorg of unit tests 2023-01-15 18:33:38 -07:00
Tig
43740f8d34 Merge pull request #2283 from BDisp/hotKeyPos-fix_2282
Fixes #2282. HotKeyPos is causing black cell on center and right/bottom alignments.
2023-01-15 18:33:12 -07:00