Did you know ... Search Documentation:
Pack webconsole -- README.TXT

library(webconsole) -- Use a browser as HTML console

The library(webconsole) allows for writing classical query/reply programs that use a web-browser for I/O. The idea behind this library is that there are a lot of Prolog applications that run a query/answer dialogue and/or wish to write messages. Most do this to the terminal, but the terminal is rather old-fashioned and complicated if you want to display, e.g., a table.

This library opens a browser using wc_start/0. Subsequently, there are predicates

  • wc_format/2,3,4 to format to the browser
  • wc_html/2,3 to send HTML to the browser
  • wc_ask/2,4 to create a form and wait for the user to fill it out.

The file examples/demo.pl provides some example queries.