forked from aws/aws-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some terminal emulators (such as mintty) will not write output to the terminal window until stdout is explicitly flushed. When running `aws configure` a user would see nothing but a new line. After pressing 'enter' four times, they would then see the output flushed all in a single line. This makes it very difficult to configure the command. The solution is to call `flush` after every prompt. Since `raw_input` does not have an option to do this, we have to prompt and flush manually. Since we're already accessing stdout directly, it's easier to write to it directly since print adds some formatting that we don't want (namely, a newline at the end of the print). Fixes aws#1925
- Loading branch information
1 parent
fdb4c27
commit c528fc8
Showing
4 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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,5 @@ | ||
{ | ||
"type": "bugfix", | ||
"description": "Fix issue causing prompts not to display on mintty. Fixes `#1925 <https://github.com/aws/aws-cli/issues/1925>`__", | ||
"category": "Configure" | ||
} |
This file contains 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 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 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