TryItOnline / tryitonline

The Try It Online family of online interpreters.
https://tryitonline.net
MIT License
539 stars 58 forks source link

prolog multiline output broken #88

Open azrdev opened 3 years ago

azrdev commented 3 years ago

A prolog query that returns multiple results prints an error.

Example: https://tio.run/##KyjKz8lP1y0uz/z/vyS1uETDUFOPC8wwAjKgYhGaegA

input

test(X).

Code (broken)

test(1).
test(2).

Debug



ERROR: Type error: `character_code' expected, found `-1' (an integer)
ERROR: In:
ERROR:   [11] char_code(_2404,-1)
ERROR:   [10] '$in_reply'(-1,'?h') at /opt/prolog-swi/lib/swipl/boot/init.pl:846

Real time: 0.202 s
User time: 0.088 s
Sys. time: 0.014 s
CPU share: 49.97 %
Exit code: 0