Added missing cut in ensure_call_graph_generated/0. This removes the duplicate results in the first call graph usage.
Set the color_term flag in the console thread.
Removed calls of thread_exit/1 since the predicate is deprecated and the calls break the thread_at_exit hook in SWI 7.1.26.
Added the predicate pdt_source_file/2 which forwards to the SWI builtin source_file/2. The behaviour of source_file/2 has been changed drastically in SWI 7.1.15.