]> Repositorios git - scryer-prolog.git/commitdiff
add n as an option to get the next solution
authorAdrián Arroyo Calle <[email protected]>
Mon, 10 Feb 2020 16:51:26 +0000 (17:51 +0100)
committerAdrián Arroyo Calle <[email protected]>
Mon, 10 Feb 2020 16:51:26 +0000 (17:51 +0100)
src/prolog/machine/system_calls.rs

index d88dad91dfb37305f413637775d39bbcb642d9cf..01f9f7d6dadcc72a59ad0bf64da7cabf3bfc8207 100644 (file)
@@ -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,
             _ => {}
         }