]> Repositorios git - scryer-prolog.git/commitdiff
add ; key.
authorMark Thom <[email protected]>
Wed, 28 Feb 2018 00:21:43 +0000 (17:21 -0700)
committerMark Thom <[email protected]>
Wed, 28 Feb 2018 00:21:43 +0000 (17:21 -0700)
src/prolog/io.rs

index 71139aeae102122543650f1b1ff5168592d7d42c..c81c2004e535856c3d533da8f70d999e3ad481a9 100644 (file)
@@ -630,7 +630,7 @@ pub fn print(wam: &mut Machine, result: EvalSession) {
 
                     for c in stdin.keys() {
                         match c.unwrap() {
-                            Key::Char(' ') => {
+                            Key::Char(' ') | Key::Char(';') => {
                                 write!(stdout, " ;\n\r").unwrap();
                                 result = wam.continue_query(&alloc_locs, &mut heap_locs);
                                 break;