-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
When Conpty encounters an unknown string, flush immediately #4896
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1847,13 +1847,6 @@ bool AdaptDispatch::EnableAlternateScroll(const bool enabled) | |
// True if handled successfully. False otherwise. | ||
bool AdaptDispatch::SetCursorStyle(const DispatchTypes::CursorStyle cursorStyle) | ||
{ | ||
bool isPty = false; | ||
_pConApi->IsConsolePty(isPty); | ||
if (isPty) | ||
{ | ||
return false; | ||
} | ||
|
||
CursorType actualType = CursorType::Legacy; | ||
bool fEnableBlinking = false; | ||
|
||
|
@@ -1894,6 +1887,15 @@ bool AdaptDispatch::SetCursorStyle(const DispatchTypes::CursorStyle cursorStyle) | |
success = _pConApi->PrivateAllowCursorBlinking(fEnableBlinking); | ||
} | ||
|
||
// If we're a conpty, always return false, so that this cursor state will be | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why after not before? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I moved this after to make the test work tbh. Doing this after means the conpty will still have this state in it the same as the Terminal, even if there's no way to query or use that information. |
||
// sent to the connected terminal | ||
bool isPty = false; | ||
_pConApi->IsConsolePty(isPty); | ||
if (isPty) | ||
{ | ||
return false; | ||
} | ||
|
||
return success; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stray comment