I have a simple prolog program:
write_manual:-
write('------------------------------'),
write('USAGE MANUAL'),
write('find_course. - List all the available courses'),
write('------------------------------').
% execute this and output this right away when I open the program in the console
Does anyone know to achieve this? I'd like to print a simple help manual before the program starts. Currently, the swi prolog console (on windows 10) shows the ?- prompt and requires me to
manually call the predicate. I'm using SWI-Prolog (threaded, 64 bits, version 8.0.0)
.
initialization main.
to work (nothing is output to the swi console). I'm running the program using thefile > consult
option of the swi prolog console (not shell). – danieln