Skip to content

Commit

Permalink
Merge pull request #1435 from wwkeyboard/caret-for-first-question
Browse files Browse the repository at this point in the history
An additional indication for input after the first question
  • Loading branch information
Diggsey authored Jun 16, 2018
2 parents dbbd83f + 67717d3 commit bb6f65f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/rustup-cli/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub fn confirm_advanced() -> Result<Confirm> {
println!("1) Proceed with installation (default)");
println!("2) Customize installation");
println!("3) Cancel installation");
print!(">");

let _ = std::io::stdout().flush();
let input = read_line()?;
Expand Down
4 changes: 2 additions & 2 deletions tests/cli-inst-interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fn blank_lines_around_stderr_log_output_install() {
assert!(out.stdout.contains(
r"
3) Cancel installation
>
stable installed - 1.1.0 (hash-s-2)
Expand All @@ -107,7 +107,7 @@ fn blank_lines_around_stderr_log_output_update() {
assert!(out.stdout.contains(
r"
3) Cancel installation
>
Rust is installed now. Great!
Expand Down

0 comments on commit bb6f65f

Please sign in to comment.