From c468807ce4f7f207af01bf747d92dba6ac59d2ac Mon Sep 17 00:00:00 2001 From: StassaP Date: Wed, 11 Dec 2024 14:05:52 +0000 Subject: [PATCH] Added a bit of whitespace to partial expression prompt. * Makes the expression following the "|" more readable. We might want to do the same for the default metta+> prompt. --- prolog/metta_lang/metta_repl.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prolog/metta_lang/metta_repl.pl b/prolog/metta_lang/metta_repl.pl index 5c1b9a33dd..32da417534 100755 --- a/prolog/metta_lang/metta_repl.pl +++ b/prolog/metta_lang/metta_repl.pl @@ -639,7 +639,8 @@ % Read a line from the current input stream. read_line_to_string(current_input, Line), % switch prompts after the first line is read - prompt(_,'|'), + format(atom(T),'| ~t',[]), + prompt(_,T), % Call repl_read_next with the new line concatenated to the accumulated input. repl_read_next(Accumulated, Line, Expr).