Version 16 of One-line web browser in Tcl

Updated 2001-11-02 10:40:53

A good test of how good the 'vfs' support is in Tcl 8.4a4 (with the vfs package) is to take some code that was not designed with a vfs in mind and see if it still works.

The Tkhtml package comes with a script 'hv.tcl' which can be used as a local .html browser. We can test whether it works with remote files over a vfs:

   set site "http://www.tcl-tk.net/";package require vfs; vfs::urltype::Mount http; set argc 1; set argv [list $site]; source hv.tcl

and, after a couple of second's delay, we actually get the page, and we can browse the web...


RS Hmm.. I'd call and format that as a six-liner.. sorry; fixed the example -- 'six-liner' didn't sound as good as 1.


(Moved vfs issues to vfs page).