show_console

This predicate displays the text console window of Trinc-Prolog. The console window can be used for writing character oriented programs. This predicate always succeeds. The console window:

pl_img79.gif (6946 bytes)

arrow.gif (1632 bytes) The console window cannot be closed when characters must be entered.

The button End of stream can be pressed if the user does not want to enter anymore data. The two fields at the bottom of the window state if the standard input (output) stream is the current input (output) stream.

The prolog flag console_newline controls if newline characters are put in the input stream of the console window or not.

see also: clear_console/0 close_console/0 current_prolog_flag/2 prolog streams set_prolog_flag/2

Examples
show_console. succeeds and the console window is shown

 

 

info@trinc-prolog.com