-
Notifications
You must be signed in to change notification settings - Fork 735
Fixes #3947 Adds Fake driver and fixes fluent tests (iteration-zero) #4225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 145 commits
Commits
Show all changes
150 commits
Select commit
Hold shift + click to select a range
ca37d89
Consider width2 chars that are not IsBmp
tznind a37baf0
Apply same fix in WindowsDriver
tznind 1a91f8f
Explicitly use type of local variable
tznind 788ce46
Revert changes to WindowsDriver
tznind 6a59d03
Assume we are running in a terminal that supports true color by defau…
tznind 4983e0c
Switch to SetAttribute and WriteConsole instead of WriteConsoleOutput…
tznind ebb3b06
Fix some cursor issues (WIP)
tznind c74df74
Remove concept of 'dirty rows' from v2 as its never actually used
tznind b9dd4f5
Remove damageRegion as it does nothing
tznind 5501ada
Make string builder to console writing simpler
tznind 6ce6b6b
Radically simplify Write method
tznind e25beff
Simplify conditional logic
tznind 77fcdef
Simplify restoring cursor position
tznind e08b2d6
Reference local variable for console buffer
tznind 711e474
Reduce calls to ConsoleWrite by accumulating till attribute changes
tznind 8e3ec18
Merge branch 'v2_develop' into fix4191
tznind f6fbfc3
When resizing v2 16 color mode on windows, recreate the back buffer t…
tznind 8d98497
Merge branch 'v2_develop' into fix4191
tznind ab54393
Merge branch 'v2_develop' into fix4191
tznind aaee6a0
Fixes for VTS enabled
BDisp 51200cb
Fix _lastSize never being assigned
BDisp 41cfc5f
Fixes VTS for Force16Colors
BDisp 6b4e56a
Fixes force16Colors in VTS
BDisp 0308f92
Fixes escape sequences always echoing in non-VTS
BDisp e36a43e
Force Force16Colors in non-VTS. It have a bug in adding a newline in …
BDisp a78e83a
Merge pull request #179 from BDisp/fix4191-vts-fix
tznind 52aea94
Merge branch 'v2_develop' into fix4191
tznind 35a4ecb
WIP Add base class for NetOutput
tznind db07327
Abstract away how we change attribute
tznind 41323ac
WIP - Make WindowsOutput use base class
tznind 9cf7e4b
WIP working to fix set cursor position
tznind 66eccb7
Remove commented out code
tznind a4eb3eb
Fixes legacy output mode
BDisp 89079d2
Fixes size with no alt buffer supported on VTS and size restore after…
BDisp 46a419d
Fix set cursor which also fixes the broken surrogate pairs
BDisp dae2b26
Add force parameter
BDisp 556b1d5
Fixes an issue that only happens with Windows Terminal when paste sur…
BDisp 4117f4a
In Windows escape sequences must be sent during the lifetime of the c…
BDisp e2d3cc1
Ensure flush the input buffer before reset the console
BDisp 5306017
Flush input buffer before reset console in v2win
BDisp f32aef7
Fixes issue in v2net not being refreshing the menu bar at start
BDisp 96b3b41
Only force layout and draw on size changed.
BDisp 0a5c6bb
Merge pull request #180 from BDisp/fix4191-fix
tznind 36cb50d
Fix v2net issue not draw first line by forcing set cursor position
BDisp fd76522
Set _lastCursorPosition nullable and remove bool force from set curso…
BDisp d602d47
Merge pull request #181 from BDisp/fix4191-fix
tznind 9c682d8
Remove force parameter
BDisp ef103d8
Merge pull request #182 from BDisp/fix4191-fix
tznind eaf1f79
Add v2 version of fake driver attribute
tznind 0eec334
Make direct replacement and wire up window resizing events
tznind 21d44c6
Update casts to use V2 fake driver instead
tznind f872cc5
Adjust interfaces to expose less internals
tznind cbdd0bd
Fix not raising iteration event in v2
tznind deaf791
WIP investigate what it takes to do resize and redraw using TextAlign…
tznind 866cc73
Sketch adding component factory
tznind 5493181
Create relevant fake component factories
tznind 391df6f
Add window size monitor into factory
tznind 985ec40
Fake size monitor injecting
tznind af4fecb
Add helper for faking console resize in AutoInitShutdown tests
tznind 9cbf4fe
Fix size setting in FakeDriverV2
tznind d1ba176
Switch to new method
tznind 4e2b25a
merge rewrite windows driver
tznind 637d984
Fix IsLegacy becoming false when using blank constructor
tznind 3bed0c4
Fix for Ready not being raised when showing same top twice also fixes…
tznind 82a279a
Fix tests
tznind f0d5794
Remove auto init
tznind 2a68279
Restore conditional compilation stuff
tznind 295a81f
Restore 'if running unit tests' logic
tznind 382156f
Check only for the output being specific classes for the suppression
tznind ab9ac77
Fix ShadowView blowing up with index out of bounds error
tznind dd8d6f5
Fix resize in fluent tests
tznind 33f5a5b
Fix for people using Iteration call directly
tznind a5538b3
Fix more calls to iteration to use
tznind aae1592
Add comment
tznind 67c4258
Remove assumption that Run with prior view not disposed should throw
tznind 7b5324c
Fix timings in Dialog_Opened_From_Another_Dialog
tznind 745b3fd
Fix Zero_Buttons_Works
tznind 57af471
Standardize and fix Button_IsDefault_True_Return_His_Index_On_Accepting
tznind d3f408b
Fix iteration counts on MessageBoxTests
tznind dfb0fb4
Fix WizartTests and DrawTests_Ruler
tznind a4ca08b
Implement SendKeys into ConsoleDriverFacade
tznind 5c5e0a6
Fix SendKeys in console driver facade such that FileDialogTests works
tznind 8d48c60
Add missing dispose call to test
tznind eb10c9b
Fix support for Esc in facade SendKeys
tznind 2718bf2
Fix AutocompleteTests
tznind 30734f3
Fix various tests
tznind cb367d7
Replace LayoutAndDraw with run iteration
tznind aa67d9f
Fix draw issues
tznind feffed5
fix draw order
tznind 6f840e0
Fix run iteration calls
tznind 41f26e5
Fix unit tests
tznind 90eea70
Fix SendKeys in facade.
BDisp b2ea599
Manipulate upper and lower cases.
BDisp 7b5a52a
Add IsValidInput method to the interface.
BDisp f0ce70b
Fix SendKeys scenario
BDisp b8a6d0d
Fixes surrogate pairs in the label
BDisp 10df68a
Merge pull request #183 from BDisp/v2-fake-driver-send-fix
tznind 9ceac36
Make tests more sensible - they are testing draw functionality. Call…
tznind d83446f
Fix tests and harden cleanup in AutoInitShutdownAttribute v2 lifecycl…
tznind fc7198f
Delete extra create input call
tznind 7b14fcc
Fix mocks and order of exceptions thrown in Run when things are not i…
tznind d4badc0
Revert use of `MapConsoleKeyInfoToKeyCode`
tznind 9b5c4f4
Ignore casing as it is not what test is really about
tznind 2fc4cd7
Clear application top and top levels before each auto init shutdown test
tznind 2cc1b00
Fix for unstable tests
tznind 6c07cbb
Restore actually working SendKeys code
tznind 2734748
option to pass logger in fluent ctor
tznind 9e4a3cc
restore ToArray
tznind d0de7c2
Fix SendKeys method and add extension to unit test
BDisp 823b6e4
Leverage the EscSeqUtils.MapConsoleKeyInfo method to avoid duplicate …
BDisp 6a11f0d
Merge pull request #184 from BDisp/v2-fake-driver-sendkeys-fix
tznind a554e0e
Remove unnecessary hack
BDisp f38e8ef
Using only KeyCode for rKeys
BDisp ec74932
Recover modifier keys in surrogate pairs
BDisp 08ae16d
Reformat
BDisp fb00c6f
Merge pull request #185 from BDisp/v2-fake-driver-fix
tznind 4234bac
Remove iteration limit for benchmarking in v2
tznind 1ddc17f
remove iteration delay to identify bugs
tznind 0bf2c74
Remove nudge to unique key and make Then run on UI thread
tznind a5e26ed
fix fluid assertions
tznind e1491a7
Ensure UI operations all happen on UI thread
tznind a11ee36
Add explicit error for WaitIteration during an invoke
tznind 8e79ddb
Remove timeout added for debug
tznind 6d18e98
Catch failing asserts better
tznind b84ce08
Fix screenshot
tznind 5409cf0
Fix null ref
tznind 29b6d7e
Fix race condition in processing input
tznind 893fe74
Test fixing
tznind 0d259c1
Standardize asserts
tznind f62456a
Remove calls to layout and draw, remove pointless lock and enable rea…
tznind 0ea6dfc
Merge branch 'v2_develop' into v2-fake-driver
tznind 90927a9
Merge branch 'v2-fake-driver' of https://github.com/tznind/gui.cs int…
tznind 08ec7f6
fix bad merge
tznind c52b1b8
Merge branch 'v2-fake-driver' into iteration-zero
tznind fb466cc
Make logs access threadsafe
tznind 938356a
add extra wait to remove race between iteration end and assert
tznind 9efc530
Code cleanup
tznind e8c061d
Remove test for crash on access Cancelled after dispose as this is no…
tznind cff202d
Change resize console to run on UI thread - fixing race condition wit…
tznind d47fd50
Restore original frame rate after test
tznind 47ca6fd
Restore nudge to unique key
tznind d463213
Code Cleanup
tznind 370bd12
Fix for cascading failures when an assert fails in a specific test
tznind 2b8d72d
Merge branch 'v2_develop' into iteration-zero
tznind a6524e8
fix for bad merge
tznind 14c68e5
Address PR feedback
tznind 7e54cc2
Move classes to seperate files and add xmldoc
tznind dd8857d
xml doc warnings
tznind 4891b00
More xml comments docs
tznind 73f2d9e
Fix spelling
tznind File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| namespace Terminal.Gui.Drivers; | ||
|
|
||
| internal interface IWindowsInput : IConsoleInput<WindowsConsole.InputRecord> | ||
| public interface IWindowsInput : IConsoleInput<WindowsConsole.InputRecord> | ||
| { } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.