4.35.4 Controlling the swipl-win (Epilog) console window
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Operating System Interaction
          • Controlling the swipl-win (Epilog) console window
            • epilog/0
            • epilog/1
            • set_epilog/1
    • Packages
set_epilog(+Option)
Modify the Epilog console attached to the calling thread. Option is one of:
title(+Title)
foreground(+Color)
background(+Color)
selection_foreground(+Color)
selection_background(+Color)
menu(+Label, +Before)
Add a new popup to the Epilog menu. The popus is added before Before. If Before is‘-`, the new popup is added to the right.
menu_item(+PopupName, +Item, +Before, :Goal)

Insert an item in the Epilog console menu. PopupName is the popup in which to insert the item. Item is the name for the new item. If Item is --, a separator is inserted. Before is the name of the item before which to insert the new item. If this is -, the item is appended.

Goal is injected into the current terminal of the Epilog window. This implies that we assume that the console is waiting for the user. Eventually, we probably want a more flexible solution.

This predicate raises existence_error(epilog, Thread) if the (calling) thread has no attached Epilog window. Threads are started in an Epilog window have the Prolog flag console_menu set to true.