12.4.25 Embedding SWI-Prolog in other applications
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • The Foreign Include File
          • Embedding SWI-Prolog in other applications
            • PL_initialise()
            • PL_winitialise()
            • PL_is_initialised()
            • PL_set_resource_db_mem()
            • PL_toplevel()
            • PL_cleanup()
            • PL_cleanup_fork()
            • PL_save_ctty()
            • PL_restore_ctty()
            • PL_halt()
            • Threading, Signals and embedded Prolog
    • Packages
Availability:C-language interface function
void PL_restore_ctty(void *state)
If the terminals recorded by PL_save_ctty() were revoked, open them again on the same descriptors and restore their settings. Always releases state, which may be NULL.