diff options
author | Joris | 2022-10-09 17:37:36 +0200 |
---|---|---|
committer | Joris | 2022-10-09 17:37:36 +0200 |
commit | 3cf9a1ee7a14c711d11f57da13d70992767e2ffb (patch) | |
tree | 523d81e61aecfec26ab783cbc4fae7eb9b417fa5 /src/gui | |
parent | f12e337cd88dfa34035e73facd06c061f1d7ac11 (diff) |
Show cursor
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/question.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/question.rs b/src/gui/question.rs index 81347b5..0d9d3c2 100644 --- a/src/gui/question.rs +++ b/src/gui/question.rs @@ -70,7 +70,8 @@ pub fn ask<B: Backend>( .alignment(Alignment::Center); f.render_widget(question, chunks[1]); - let answer = Paragraph::new(util::center_vertically(chunks[2], &state.input)) + let formatted_input = format!("{}█", state.input); + let answer = Paragraph::new(util::center_vertically(chunks[2], &formatted_input)) .style(match state.answer { Answer::Write => Style::default(), Answer::Difficulty { difficulty: _ } => { |