-
Notifications
You must be signed in to change notification settings - Fork 777
Fixes #3985. Remove unix driver; augment ansi driver to support configurable size detection #4821
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 4 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
28825e0
Initial plan
Copilot f70063c
Merge branch 'v2_develop' into copilot/remove-unix-driver
tig 9bec750
Fixes #3985. Remove unix driver; augment ansi driver to optionally su…
Copilot 5d70c46
Merge branch 'v2_develop' into copilot/remove-unix-driver
tig 30ae317
Fix size detection: AnsiQuery default, SizeMonitorImpl init fix, Poll…
Copilot 8a2704b
Address code review: use IOException in CreateNativeSizeQuery catch b…
Copilot e83f7a9
Merge branch 'copilot/remove-unix-driver' of https://github.com/gui-c…
tig 236681d
Fix: ANSI driver now detects terminal resizes correctly
tig 2443a1c
Move SuspendHelper.cs to UnixHelpers directory
tig 229f15c
Extract flush P/Invoke from AnsiTerminalHelper to platform helpers
tig f9f4a06
Extract IsAttachedToTerminal P/Invoke to platform helpers
tig 4d4e23e
Move NetWinVTConsole to WindowsHelpers directory
tig d0681a1
Code cleanup
tig e1cc30d
Improve suspend/resume: add cooked mode restore and diagnostics
tig 69dd99a
Fix termios struct layout mismatch on macOS
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| namespace Terminal.Gui.Drivers; | ||
|
|
||
| /// <summary> | ||
| /// Controls how the ANSI driver detects the terminal's window size. | ||
| /// </summary> | ||
| public enum SizeDetectionMode | ||
| { | ||
| /// <summary> | ||
| /// Uses <c>ioctl(TIOCGWINSZ)</c> on Unix/macOS or the Console API on Windows. | ||
| /// Synchronous, immediate, and reliable. This is the default. | ||
| /// </summary> | ||
| Polling, | ||
|
|
||
| /// <summary> | ||
| /// Sends a <c>CSI 18t</c> ANSI escape-sequence query and parses the | ||
| /// <c>ESC [ 8 ; height ; width t</c> response. Works over SSH or any | ||
| /// ANSI-compatible terminal but is asynchronous and throttled to one | ||
| /// query per 500 ms. | ||
| /// </summary> | ||
| AnsiQuery | ||
| } |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.