From 27be72f3bec2e20bc8bf923c3164c2fa4ed471fb Mon Sep 17 00:00:00 2001 From: Artlef Date: Sun, 29 Nov 2020 01:51:21 +0100 Subject: [PATCH] fixup! Add ascii mode: @ print the board using only ascii --- src/bin/client.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/client.rs b/src/bin/client.rs index 0068cb8..2c9b540 100644 --- a/src/bin/client.rs +++ b/src/bin/client.rs @@ -358,7 +358,10 @@ fn start_keyboard_input_thread( let b = bytes.next().unwrap().unwrap(); let e = parse_event(b, &mut bytes).unwrap(); let is_player_turn = is_player_turn.lock().unwrap(); - if !*is_player_turn && e != Event::Key(Key::Ctrl('c')) { + if !*is_player_turn + && e != Event::Key(Key::Ctrl('c')) + && e != Event::Key(Key::Char('@')) + { //ignore input when it's not the client turn continue; }