Skip to content

Commit

Permalink
add command prompt and stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
fvkramer committed Jan 7, 2020
1 parent 60fc758 commit 3c4360f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/kvs-client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ fn run_command_prompt() -> Result<()> {
print!("> ");
io::stdout().flush();

let term_input = io::stdin().read_line(&mut input);
io::stdin().read_line(&mut input)?;
println!("{}", input.trim());
}

Ok(())
Expand Down

0 comments on commit 3c4360f

Please sign in to comment.