Commit Graph

8020 Commits

Author SHA1 Message Date
BDisp
1ce27886dc Add ; exec bash to stay in terminal 2025-07-31 01:18:36 +01:00
BDisp
88bf87b8bb Fixes issue on restore window size after maximize causing width shrinking 2025-07-31 01:18:18 +01:00
BDisp
50cfa71445 Add gnome-terminal to launch settings 2025-07-31 01:18:02 +01:00
BDisp
5be8d60813 Prevents null reference 2025-07-31 01:17:39 +01:00
BDisp
45d17105a6 Merge branch 'v2_develop' into v2_4200_wider-surrogatepair-force16colors-fix 2025-07-29 22:59:02 +01:00
BDisp
48d4de2e63 Fixes #4214. Annoying sporadic System.NullReferenceException in WindowsConsole (#4215) 2025-07-28 06:33:55 -06:00
BDisp
847123aa00 Fixes #4211. Annoying sporadic System.NullReferenceException in NetEvents (#4213) 2025-07-26 18:38:44 -06:00
BDisp
807f1fdcc8 Fixes #4204. v2win and v2net aren't refreshing the Character Map correctly (#4205)
* Fixes #4204. v2win and v2net aren't refreshing the Character Map correctly

* Reformat to run CI again

* Revert "Reformat to run CI again"

This reverts commit 3efad83f52.

* Revert "Fixes #4204. v2win and v2net aren't refreshing the Character Map correctly"

This reverts commit 6ec4adcc45.

* Apply @tig suggested changes

* Fixes #4208. MainLoopSyncContext doesn't work with the v2 drivers

* Trying fix unit test error

* Revert "Trying fix unit test error"

This reverts commit 3aaefd6053.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2025-07-25 05:54:14 -06:00
BDisp
2025a81511 Fixes #4208. MainLoopSyncContext doesn't work with the v2 drivers (#4209) 2025-07-24 17:06:46 -06:00
BDisp
add2877e09 Fixes #4206. There is no need to use a Task.Run to force Invoke in the MainThreadId (#4207) 2025-07-24 06:26:51 -06:00
BDisp
2f7b3c9e0b Revert newlines and FakeOutput 2025-07-23 14:21:58 +01:00
BDisp
15d4ac0158 Revert all v2 changes except the one related with the ExtendedCharInfo 2025-07-23 14:11:44 +01:00
BDisp
e061af00cd Fix unit tests 2025-07-23 00:13:17 +01:00
BDisp
265c30e7db Resolving merge conflicts 2025-07-22 22:33:39 +01:00
BDisp
3b13d5a83c Fixes #4196. Application.Begin doesn't refresh the screen at start (#4197)
* Fixes #4196. Application.Begin doesn't refresh the screen at start

* Reformatting to run CI again

* Revert "Reformatting to run CI again"

This reverts commit ef639c1e64.

* Trying fix an issue where sometimes subview variable is null running unit tests

* Add comment and decrease the delay time
2025-07-22 13:58:10 -06:00
BDisp
2ec08d5939 Fixes #4198. Application.Invoke isn't wakeup the driver if idle (#4199) 2025-07-22 13:57:38 -06:00
BDisp
0cc4c60802 Revert GetWindowSize and add SetWindowSize 2025-07-22 18:29:53 +01:00
BDisp
600eba4667 Fix null exception 2025-07-22 18:15:22 +01:00
BDisp
69e1986b22 Prevent select true color is not supported 2025-07-22 16:46:36 +01:00
BDisp
9c25a7c581 Implement SetConsoleTextAttribute 2025-07-22 16:45:14 +01:00
BDisp
1a2fb66902 Handling surrogate pairs in input 2025-07-22 16:39:35 +01:00
BDisp
8ef7116423 Add a lastSize parameter to process resize automatically 2025-07-22 16:37:04 +01:00
BDisp
7097c0b7e3 Replace IsWindowsTerminal with IsVirtualTerminal 2025-07-22 16:24:12 +01:00
BDisp
fea1d4f5c0 Replace ExtendedCharInfo.Char with char array 2025-07-21 23:38:25 +01:00
BDisp
0a52c49e71 Merge branch 'v2_4198_application-invoke-wakeup-fix' into v2_4200_wider-surrogatepair-force16colors-fix 2025-07-21 18:57:16 +01:00
BDisp
e48466f1fe Trying fix an issue where sometimes subview variable is null running unit tests 2025-07-21 18:35:40 +01:00
BDisp
d2acdf627e Revert "Reformatting to run CI again"
This reverts commit ef639c1e64.
2025-07-21 18:10:36 +01:00
BDisp
ef639c1e64 Reformatting to run CI again 2025-07-21 17:57:14 +01:00
BDisp
a470275ca6 Fixes #4198. Application.Invoke isn't wakeup the driver if idle 2025-07-21 17:13:13 +01:00
BDisp
2d1ab6f12c Fixes #4196. Application.Begin doesn't refresh the screen at start 2025-07-21 16:53:36 +01:00
Thomas Nind
ec827e901e Fixes #4172 Timeout revamp and remove continuous mouse (#4173)
* Remove continous press code from Application

* WIP prototype code to handle continuous press as subcomponent of View

* Prototype with Button

* Implement CWP

* Move to seperate classes and prevent double entry to Start

* Fix repeat clicking when moving mouse by removing phantom click code (old implementation of WantContinuousButtonPressed)

* Remove initial tick because it results in double activation e.g. button firing twice immediately as mouse is pressed down.

* Refactor DatePicker lamdas

* WIP investigate subcomponents instead of statics

* Add IMouseGrabHandler to IApplication

* Make mouse grabbing non static activity

* Make MouseHeldDown suppress when null fields e.g. app not initialized in tests

* Update test and remove dependency on Application

* Fix other mouse click and hold tests

* Code cleanup

* Update class diagram

* Fix bad xml doc references

* Fix timed events not getting passed through in v2 applications

* Make timed events nullable for tests that dont create an Application

* Remove strange blocking test

* WIP remove all idles and replace with zero timeouts

* Fix build of tests

* Fix unit tests

* Add wakeup call back in

* Comment out incredibly complicated test and fix others

* Fix test

* test fix

* Make Post execute immediately if already on UI thread

* Re enable test and simplify Invoke to just execute if in UI thread (up front)

* Remove xml doc references to idles

* Remove more references to idles

* Make Screen initialization threadsafe

* Add more exciting timeouts

* WIP add tests

* fix log

* fix test

* make continuous key press use smoth acceleration

* Rename _lock to _lockScreen

* Remove section on idles, they are not a thing anymore - and they kinda never were.

* Add nullable enable

* Add xml comment

* Fix namings and cleanup code

* xmldoc fix

* Rename LockAndRunTimers to just RunTimers

* Rename AddTimeout and RemoveTimeout (and event) to just Add/Remove

* Update description of MainLoop

* Commented out Run_T_Call_Init_ForceDriver_Should_Pick_Correct_Driver

* Again? Commented out Run_T_Call_Init_ForceDriver_Should_Pick_Correct_Driver

* Revert Commented out Run_T_Call_Init_ForceDriver_Should_Pick_Correct_Driver

* When mouse is released from MouseHeldDown reset host MouseState

* Fix namespaces in class diagram

* Apply @BDisp suggested fix

* Fix class diagrams

* Add lock

* Make TimeSpan.Zero definetly run

* Fix duplicate entry in package props

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
2025-07-10 11:59:27 -06:00
Thomas Nind
23cacaee93 Fix integration tests failing on command line (#4185)
Co-authored-by: Tig <tig@users.noreply.github.com>
2025-07-07 11:05:53 -06:00
Thomas Nind
3a645191db Fixes #4170 - Added analyzer that flags when user does not have Handled=true (#4182)
* Added analyzer

* WIP - Trying to create tests, failing with bad dependencies

* Working test woo

* Tidy up

* Tidy up

* Fix integration tests failing on command line

* Use 4.11 compiler

* Fix expecting 'e' as param name

* Make analyzer come as part of Terminal.Gui

* Add docs

* Fix warnings
2025-07-07 09:14:43 -06:00
Nemo Xiong
3d53c30ee1 readme: update outdated doc links (#4181) 2025-06-28 07:47:00 -06:00
Daniel Marbach
43142dedc3 Cleanup Dependencies slighty (#4178)
* Source link should be private

* Remove unnecessary System.Text.Json reference

* Use logging abstractions

* Use fixed logging version

* Remove unnecessary analysis references

---------

Co-authored-by: Daniel Marbach <danielmarbach@users.noreply.github.com>
2025-06-27 10:11:59 -06:00
BDisp
497ddb3b3e Fixes #4164. FluentTests sometime causes unit tests failures locally and in CI (#4165) 2025-06-24 09:23:46 -07:00
BDisp
b50a8fd665 Fixes #4162. Keyword dynamic isn't AOT-Compatible and must be removed (#4163) 2025-06-15 10:57:55 -06:00
BDisp
6e486c718e Fixes #4160. Benchmark All launch throws System.IndexOutOfRangeException: 'Index was outside the bounds of the array.' (#4161) 2025-06-12 19:10:28 -06:00
Tig
4cd6511c89 Updated doc links 2025-06-12 13:45:39 -06:00
Tig
258824dba6 Updated readme etc for Alpha 2025-06-12 13:33:06 -06:00
Tig
e0e87a2b40 Migrating api docs 4 2025-06-12 12:27:06 -06:00
Tig
8c7c266618 Migrating api docs 3 2025-06-12 12:23:44 -06:00
Tig
5e96525522 Migrating api docs 2 2025-06-12 12:22:11 -06:00
Tig
40d6250427 Migrating api docs 2025-06-12 12:18:25 -06:00
Tig
f4d4a25704 pre-alpha -> alpha (#4158) 2025-06-12 12:16:54 -06:00
Tig
6e5e6dbbb9 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-06-12 12:03:41 -06:00
BDisp
ad1de255b1 Fixes #4139. Application.Run<T> isn't initializing properly by setting the Application.ForceDriver property (#4142)
* Fixes #4139. Application.Run<T> isn't initializing properly by setting the Application.ForceDriver property

* Trying fix unit tests

* Only to force again CI tests because I haven't errors locally

* This should pass, unless RunningUnitTests is set to false somewhere

* Fix Unix unit tests and failures via ReSharper

* Changes suggested by @tig

* Prevent empty string

* Centralize all the entry logic in the InternalInit method

* Change GetDriverTypes to return a tuple
2025-06-12 10:48:05 -06:00
BDisp
76b7e52e12 Fixes #4143. ReactiveExample throw System.NotSupportedException: 'Index expressions are only supported with constants.' (#4144) 2025-06-11 06:44:08 -06:00
Tig
5863d383f1 Merge branch 'v2_develop' of tig:tig/Terminal.Gui into v2_develop 2025-06-09 14:37:37 -06:00
BDisp
d3f4c42785 Fixes 4132. .editorconfig has ambiguous configuration with same files (#4133)
Co-authored-by: Tig <tig@users.noreply.github.com>
2025-06-09 14:31:11 -06:00