From 3cf9a1ee7a14c711d11f57da13d70992767e2ffb Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 9 Oct 2022 17:37:36 +0200 Subject: Show cursor --- src/gui/question.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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( .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: _ } => { -- cgit v1.2.3