Skip to content

Commit

Permalink
switch prompts after the first line is read as per #205
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Dec 11, 2024
1 parent d85bb41 commit 9ede9e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prolog/metta_lang/metta_repl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,8 @@
repl_read_next(Accumulated, Expr) :-
% Read a line from the current input stream.
read_line_to_string(current_input, Line),
% switch prompts after the first line is read
prompt(_,'|'),
% Call repl_read_next with the new line concatenated to the accumulated input.
repl_read_next(Accumulated, Line, Expr).

Expand Down

0 comments on commit 9ede9e5

Please sign in to comment.