Skip to content

Commit

Permalink
have println go out user_io
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Dec 24, 2024
1 parent ec5fed2 commit fdcf0ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prolog/metta_lang/metta_eval.pl
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@
maplist(println_impl,Out),
make_nop(RetType,[],Res),check_returnval(Eq,RetType,Res).

println_impl(X):- format("~N~@~N",[write_sln(X)]),!,flush_output.
println_impl(X):- ttyflush,user_io((format("~N~@~N",[write_sln(X)]))),!,flush_output,ttyflush.
%println_impl(X):- user_io((ansi_format(fg('#c7ea46'),"~N~@~N",[write_sln(X)]))),flush_output.
%println_impl(X):- ((ansi_format(fg('#c7ea46'),"~N~@~N",[write_sln(X)]))),flush_output.

Expand Down

0 comments on commit fdcf0ff

Please sign in to comment.