users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get rid of prolog banner


From: Salvador Abreu
Subject: Re: get rid of prolog banner
Date: Sat, 26 Apr 2003 22:03:25 +0100

address@hidden wrote:

> The --init-goal is ok for the prolog banner, but I still have a few
> lines when loading the facts from the file.

> Eventually, I would need a silent mode, or a to redirect standard
> output after reading the file.

If it's possible to do so, why don't you compile your program?  Try
something like this:

        22:00:35$ cat foo.pl
        :- initialization(main).
 
        main :- write('hello world!'), nl.
        22:00:39$ gplc -o foo foo.pl --no-top-level
        22:01:13$ ./foo
        hello world!
        22:01:15$

ie. compile with "--no-top-level" and provide a directive ":-
initialization(YOUR_GOAL)".

-- 
 ../salvador




reply via email to

[Prev in Thread] Current Thread [Next in Thread]