From a732bc9dc4976cb15950d642b845f15574232736 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Mon, 10 Feb 2020 17:51:26 +0100 Subject: [PATCH] add n as an option to get the next solution --- src/prolog/machine/system_calls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prolog/machine/system_calls.rs b/src/prolog/machine/system_calls.rs index d88dad91..01f9f7d6 100644 --- a/src/prolog/machine/system_calls.rs +++ b/src/prolog/machine/system_calls.rs @@ -41,7 +41,7 @@ pub fn next_keypress() -> ContinueResult { for c in stdin.keys() { match c.unwrap() { - Key::Char(' ') | Key::Char(';') => return ContinueResult::ContinueQuery, + Key::Char(' ') | Key::Char(';') | Key::Char('n') => return ContinueResult::ContinueQuery, Key::Char('.') => return ContinueResult::Conclude, _ => {} } -- 2.54.0