SWI-Prolog / swish

SWI-Prolog for SHaring: a SWI-Prolog web IDE
Other
493 stars 129 forks source link

ansi_format/3 sandboxed #6

Open Anniepoo opened 9 years ago

Anniepoo commented 9 years ago

I assume this is because it's not implemented.

JanWielemaker commented 9 years ago

I/O must be redefined to use pengine_output/1. This is done in pengines_io.pl. It won't be very hard to emulate ansi_format/3, but is it of any use, or should we aim at a more general safe HTML output?

Anniepoo commented 9 years ago

Not sure I understand what you're thinking of. I was thinking of programs that need retrofitted, but definitely we should have a more general solution. dmiles has some ansi-colored program he wants to swish-ify, that's what started this. We were trying to figure out how to make a custom renderer.

In some world it might be nice if pengine IO happened in 'flavors', like copy/paste, so if you get HTML in a web page you use it, if not use text, etc.