-
Notifications
You must be signed in to change notification settings - Fork 722
Fixes #4250. Add a v2unix driver #4251
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
+700
−63
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
63bb2e0
Implement Unix driver
BDisp 819b209
Add more sequences related with macOS
BDisp 5178eda
Helper method to map char to control keys
BDisp b0949c9
Add DriverName property
BDisp 4e7cd02
Fix error on Unix unit tests
BDisp e170a79
Fix Non-nullable property 'DriverName' must contain a non-null value …
BDisp 5be7cef
Fix Ctrl being ignored in the range \u0001-\u001a
BDisp 759462e
Add unit test for the MapChar method
BDisp 1fdf1d1
Fix cursor visibility and cursor styles
BDisp e6c07d2
Avoid sometimes error when running gnome-terminal
BDisp 329422b
Captures Ctrl+Shift+Alt+D7
BDisp f800a89
Captures Ctrl+D4, Ctrl+D5, Ctrl+D6 and Ctrl+D7
BDisp fefc240
Add unit test for Ctrl+Shift+Alt+7
BDisp ae8d765
Fix issue on Windows where sending AltGr+some key fail assertion
BDisp be52c37
Exclude Oem1 from assertion
BDisp 57f3d46
Fix regex pattern
BDisp 004e9f9
Remove driverName from the constructor
BDisp 9d1807e
Revert "Remove driverName from the constructor"
BDisp f3d55b8
Remove driverName from the constructor
BDisp 167d65c
Add generic CreateSubcomponents method avoiding redundancy
BDisp 893d926
Add v2unix profiles
BDisp 4d2443e
Replace with hexadecimal values
BDisp 91e6b7a
Merge branch 'v2_develop' into v2_4250_v2unix-new
tig 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace Terminal.Gui.Drivers; | ||
|
||
internal interface IUnixInput : IConsoleInput<char>; |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#nullable enable | ||
using System.Collections.Concurrent; | ||
|
||
namespace Terminal.Gui.Drivers; | ||
|
||
/// <summary> | ||
/// <see cref="IComponentFactory{T}"/> implementation for native unix console I/O i.e. v2unix. | ||
/// This factory creates instances of internal classes <see cref="UnixInput"/>, <see cref="UnixOutput"/> etc. | ||
/// </summary> | ||
public class UnixComponentFactory : ComponentFactory<char> | ||
{ | ||
/// <inheritdoc /> | ||
public override IConsoleInput<char> CreateInput () | ||
{ | ||
return new UnixInput (); | ||
} | ||
|
||
/// <inheritdoc /> | ||
public override IInputProcessor CreateInputProcessor (ConcurrentQueue<char> inputBuffer) | ||
{ | ||
return new UnixInputProcessor (inputBuffer); | ||
} | ||
|
||
/// <inheritdoc /> | ||
public override IConsoleOutput CreateOutput () | ||
{ | ||
return new UnixOutput (); | ||
} | ||
} |
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.