Commit Graph

667 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
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
Tig
81d3ad8aeb Merge pull request #2352 from tznind/animation
Adds Animation Scenario
2023-02-20 22:29:49 +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
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
BDisp
276ffe0343 Fixes #2348. The Basic Colors scenario doesn't output the blue on white properly. 2023-02-13 20:52:00 +00:00
Tig Kindel
d6e308966b fixing merge screwups 2023-02-07 17:03:10 +09:00
Tig Kindel
2b26ec7bfb merge fixes 2023-02-07 16:33:22 +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 Kindel
c566a66bc0 merge develop to v2 2023-02-03 23:28:58 +09: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
tznind
553cd6f66f Adds TabView.TabClicked event 2023-01-20 19:30:36 +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
tznind
7fefe44dbd Enable rounded corners in Drawing scenario 2023-01-08 11:57:25 +00:00
tznind
56b22be00f Add tests 2023-01-08 11:48:32 +00:00
tznind
3702c07b04 Rename to LineCanvas 2023-01-08 10:54:37 +00:00
tznind
ab5f4ccfb5 Add support for double lines into StraightLineCanvas 2023-01-07 07:40:23 +00:00
tznind
b708150eda Flesh out drawing scenario 2023-01-07 07:26:07 +00:00
tznind
fb0958dabd Implement rest of StraightLineCanvas 2023-01-07 06:46:59 +00:00
Charlie Kindel
ab7d667217 merge 2022-12-31 06:23:49 -07:00
Charlie Kindel
eb8cb4408d misc changed done before I went on holiday 2022-12-31 06:20:17 -07:00
Tig Kindel
524be85ae3 add OS version info to UI Catalog 2022-12-22 18:37:53 -03:00
Tig Kindel
c65c57590d merge with develop 2022-12-20 18:02:31 -03:00
dependabot[bot]
fe4150ca27 Bump CsvHelper from 30.0.0 to 30.0.1
Bumps [CsvHelper](https://github.com/JoshClose/CsvHelper) from 30.0.0 to 30.0.1.
- [Release notes](https://github.com/JoshClose/CsvHelper/releases)
- [Commits](https://github.com/JoshClose/CsvHelper/compare/30.0.0...30.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 14:13:49 +00:00
Charlie Kindel
a0b36d3457 merged develop 2022-12-04 08:09:27 -07:00
Tig
00df975751 Merge branch 'develop' into mouse-grab-dim-2219 2022-12-04 08:02:45 -07:00
Tig
bafb4bbd5f Merge pull request #2183 from cpacejo/fix-nonbmp
Fixes #2182. Fix output of non-BMP Unicode characters in NetDriver.
2022-12-04 07:54:48 -07:00
Tig
e8e07a184c Merge pull request #2243 from tznind/tablecol-visible
Fixes #1465.  TableView columns can now be hidden via `ColumnStyle.Visible`
2022-12-04 07:54:14 -07:00
tznind
6a932f6fae Fix whitespace 2022-12-04 14:50:09 +00:00
Thomas Nind
4120e1e39f Merge branch 'develop' into csv-robust 2022-12-04 14:43:51 +00:00
tznind
8a6dfe75db Merge branch 'develop' into csv-robust 2022-12-04 14:41:37 +00:00
Tig
6664a4a162 Merge branch 'develop' into tablecol-visible 2022-12-04 07:19:01 -07:00
tznind
f362e40ca0 Add sort to context menu and fix naming of context items when they are sorted 2022-12-03 19:59:52 +00:00
tznind
6136656327 Added context menu for show/hide columns in TableEditorScenario 2022-12-03 19:49:42 +00:00
BDisp
b917064bb0 Merge branch 'develop' into csv-editor-fix 2022-12-03 19:45:30 +00:00
tznind
cf4c02a71f merge develop into tablecol-visible 2022-12-03 19:39:36 +00:00
tznind
25f9b4e267 Revert accidental changes to UICatalog 2022-11-26 22:56:45 +00:00
tznind
2fba173288 Add ColumnStyle.Visible 2022-11-26 22:55:32 +00:00
tznind
643e53b575 Add column sorting to TableEditor 2022-11-22 10:57:03 +00:00