SWI-Prolog Did You Know Did you know? SWI-Prolog supports DDE on Windows Search Documentation:
Predicate prolog_edit:edit_command/2