Skip to content

Commit bb6f65f

Browse files
authored
Merge pull request #1435 from wwkeyboard/caret-for-first-question
An additional indication for input after the first question
2 parents dbbd83f + 67717d3 commit bb6f65f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/rustup-cli/common.rs

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub fn confirm_advanced() -> Result<Confirm> {
4444
println!("1) Proceed with installation (default)");
4545
println!("2) Customize installation");
4646
println!("3) Cancel installation");
47+
print!(">");
4748

4849
let _ = std::io::stdout().flush();
4950
let input = read_line()?;

tests/cli-inst-interactive.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn blank_lines_around_stderr_log_output_install() {
8585
assert!(out.stdout.contains(
8686
r"
8787
3) Cancel installation
88-
88+
>
8989
9090
stable installed - 1.1.0 (hash-s-2)
9191
@@ -107,7 +107,7 @@ fn blank_lines_around_stderr_log_output_update() {
107107
assert!(out.stdout.contains(
108108
r"
109109
3) Cancel installation
110-
110+
>
111111
112112
113113
Rust is installed now. Great!

0 commit comments

Comments
 (0)