ContinueQuery,
Conclude,
PrintWithoutMaxDepth,
+ PrintWithMaxDepth
}
pub fn next_keypress() -> ContinueResult {
KeyCode::Char('w') => {
return ContinueResult::PrintWithoutMaxDepth;
}
+ KeyCode::Char('p') => {
+ return ContinueResult::PrintWithMaxDepth;
+ }
KeyCode::Char(' ') | KeyCode::Char(';') | KeyCode::Char('n') => {
return ContinueResult::ContinueQuery;
}
ContinueResult::ContinueQuery => ';',
ContinueResult::Conclude => '.',
ContinueResult::PrintWithoutMaxDepth => 'w',
+ ContinueResult::PrintWithMaxDepth => 'p',
};
let target = self[temp_v!(1)].clone();
'$read_input'(ThreadedGoals, NewVarList) :-
'$raw_input_read_char'(C),
- ( C == ('w'), !,
+ ( C == w ->
nl,
write(' '),
'$write_eq'(ThreadedGoals, NewVarList, 0),
'$read_input'(ThreadedGoals, NewVarList)
- ; C == (';'), !,
+ ; C == p ->
+ nl,
+ write(' '),
+ '$write_eq'(ThreadedGoals, NewVarList, 20),
+ '$read_input'(ThreadedGoals, NewVarList)
+ ; C == (';') ->
nl, write('; '), false
- ; C == ('.'), !,
+ ; C == '.',
nl, write(' ...'), nl
).