-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix UI panic and login errors on mintty/Windows #1561
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1561 +/- ##
==========================================
- Coverage 77.18% 77.09% -0.10%
==========================================
Files 162 162
Lines 13172 13188 +16
==========================================
Hits 10167 10167
- Misses 2485 2501 +16
Partials 520 520
Continue to review full report at Codecov.
|
if !errTermGetSize { | ||
// More responsive progress bar resizing on platforms with SIGWINCH (*nix) | ||
termWidth, _, err = terminal.GetSize(fd) | ||
if err != nil { |
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.
Maybe we can ignore checking this err
if it didn't fail the first time?
This falls back to plain text input which will echo the password back, but there doesn't seem to be a way around that. :-/
7f6a17a
to
1e4b958
Compare
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.
LGTM!
Closes #1559
Confirmed working on the latest Git Bash (2.27.0) and mintty 3.1.6 on Windows 10 x64 1903.
The "error getting terminal size" warning will still be shown and the progressbars will be static, but at least it doesn't panic 😅