pce_open_terminal_image(+TerminalImage,
-In, -Out, -Error)Open the Prolog streams that connect to the terminal_image
TerminalImage. In reads the input typed in the
terminal, while Out and Error write to the
terminal. The streams connect through a pseudo terminal where available.
The predicate fails if TerminalImage is not a terminal_image
or the streams cannot be created. The streams are typically used with
set_prolog_IO/3
to run a Prolog toplevel in the terminal, as
Epilog does.
- Introduced in 9.3.26 (👉990e293) pce_open_terminal_image/4 to get access to the terminal client streams