Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "webconsole"

Title:Use a browser as HTML console
Rating:
(1/2)
Latest version:0.9.1
SHA1 sum:01dfab9eeb16847746d920424b216b54e6e384c0
Author:Jan Wielemaker <J.Wielemaker@vu.nl>
Download URL:http://www.swi-prolog.org/download/pack/webconsole-*.tgz

Reviews

Write a review or add a rating.
Showing 2 reviews, sorted by date entered, last review first.

Great for a proof of concept! With it potential customers can use the expert system from ther browser.

The source code is good structured and easy to understand.

Thanks a lot for this pack!

Thursday 08 February 2024, Antonio Robirosa

Hi Jan,

Thank you for webconsole. It is a great idea. Unfortunately with : Windows7 / IE11 / swi 7.37 Control of the browser lost after using flag_table. And no input focus in the test case age(S).

will re-test a new version when available. JAcques

Monday 27 April 2015, jacques ABEL

Details by download location

VersionSHA1#DownloadsURL
0.9.0945476e6ece3daabfd80783256e7df50ce4ffddd1http://www.swi-prolog.org/download/pack/webconsole-0.9.0.tgz
0.9.101dfab9eeb16847746d920424b216b54e6e384c0101http://www.swi-prolog.org/download/pack/webconsole-0.9.1.tgz

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.

Contents of pack "webconsole"

Pack contains 9 files holding a total of 283K bytes.