Dear Haris

You can use

[user].

to make prolog read facts/rules from the terminal.
Then type Ctrl+D to get back to the prolog prompt.

But you will loose all your program, and make it difficult to edit.

The best way is to use your preferred editor (like vi, vim, pico, nano,
emacs, etc in linux or notepad, notepad++ in windows) and the load your
file into prolog.

Suppose you saved you file as "code.pl", then you can load it for instance,
using

?- [code].

or from the command line (linux), using

gprolog --consult-file code.pl

Hope that helps,
Alberto




On Sun, Dec 16, 2012 at 1:47 PM, Haris Bogdanovich <[email protected]>wrote:

> **
> Hi
>
> How do I  switch to mode where I can enter facts/rules ?
>
> Thanks
>
> _______________________________________________
> Users-prolog mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/users-prolog
>
>


-- 
Alberto Simões
_______________________________________________
Users-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/users-prolog
  • mode Haris Bogdanovich
    • Re: mode Alberto Simões
    • mode Haris Bogdanovich

Reply via email to