File: netscape.doc

package info (click to toggle)
swi-prolog 5.0.0-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,048 kB
  • ctags: 6,747
  • sloc: ansic: 52,452; perl: 13,276; sh: 2,646; makefile: 516; awk: 14
file content (26 lines) | stat: -rw-r--r-- 927 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\libdoc{netscape}{Activating your Web-browser}

This library deals with the very system dependent task of opening a
web-browser.  See also \pllib{url}.

\begin{description}
    \predicate{www_open_url}{1}{+URL}
Open \arg{URL} in an external web-browser. The reason to place this in
the library is to centralise the maintenance on this highly platform
and browser specific task.  It distinguishes between the following
cases:

\begin{itemlist}
    \item [MS-Windows]
If it detects MS-Windows it uses win_shell/2 to open the \arg{URL}.  The
behaviour and browser started depends on the Window and Windows-shell
configuration, but in general it should be the behaviour expected by
the user.

    \item [Other platforms]
On other platforms it assumes the browser is \program{netscape}.  It
first tries to tell a running netscape to open the page and only after
this fails it starts a new browser.
\end{itemlist}
\end{description}