Azure Cloud Shell cutting off code required for device login #3639

Closed
opened 2026-01-30 23:26:10 +00:00 by claunia · 5 comments
Owner

Originally created by @DukeOfEtiquette on GitHub (Aug 28, 2019).

Originally assigned to: @miniksa on GitHub.

Environment

Windows build number: Microsoft Windows [Version 10.0.18965.1000]
Windows Terminal version (if applicable): Version: 0.4.2382.0

Steps to reproduce

Open an Azure Cloud Shell with a column width of <= 90

Expected behavior

The following message should appear:
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code <code> to authenticate.

Actual behavior

The text of the message, including the code required for input at url, is cutoff and no way to get the terminal to repaint/provide the code again. Only solution is to increase width of window and open another tab to get the code.

Is it possible to apply a wordwrap to that initial message?

Originally created by @DukeOfEtiquette on GitHub (Aug 28, 2019). Originally assigned to: @miniksa on GitHub. # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18965.1000] Windows Terminal version (if applicable): Version: 0.4.2382.0 ``` # Steps to reproduce Open an Azure Cloud Shell with a column width of <= 90 # Expected behavior The following message should appear: `To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code <code> to authenticate.` # Actual behavior The text of the message, including the code required for input at url, is cutoff and no way to get the terminal to repaint/provide the code again. Only solution is to increase width of window and open another tab to get the code. Is it possible to apply a wordwrap to that initial message?
claunia added the Area-OutputIssue-TaskResolution-DuplicateProduct-Terminal labels 2026-01-30 23:26:11 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 28, 2019):

@miniksa This is electric boogaloo, right? Like theoretically, the message could just be formatted at runtime, but the real solution is WriteCharsLegacy2, yea?

@zadjii-msft commented on GitHub (Aug 28, 2019): @miniksa This is electric boogaloo, right? Like theoretically, the message could just be formatted at runtime, but the real solution is WriteCharsLegacy2, yea?
Author
Owner

@DukeOfEtiquette commented on GitHub (Aug 28, 2019):

@miniksa This is electric boogaloo, right? Like theoretically, the message could just be formatted at runtime, but the real solution is WriteCharsLegacy2, yea?

I'm not entirely sure, this is out of my wheelhouse. Runtime formatting seems reasonable.

@DukeOfEtiquette commented on GitHub (Aug 28, 2019): > @miniksa This is electric boogaloo, right? Like theoretically, the message could just be formatted at runtime, but the real solution is WriteCharsLegacy2, yea? I'm not entirely sure, this is out of my wheelhouse. Runtime formatting seems reasonable.
Author
Owner

@miniksa commented on GitHub (Aug 28, 2019):

@zadjii-msft, I believe the answer is WriteCharsLegacy2. Yes.

@miniksa commented on GitHub (Aug 28, 2019): @zadjii-msft, I believe the answer is `WriteCharsLegacy2`. Yes.
Author
Owner

@DHowett-MSFT commented on GitHub (Sep 5, 2019):

/dup #780

@DHowett-MSFT commented on GitHub (Sep 5, 2019): /dup #780
Author
Owner

@ghost commented on GitHub (Sep 5, 2019):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Sep 5, 2019): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3639