Add a process completion callback in the terminal

How can I add a callback to complete a command in the terminal launched via sendCommandToExecute for TerminalWidget?

I’ve tried using addTerminationCallback, but it doesn’t get called. The manually created process cannot be linked to TerminalWidget.

org.jetbrains.plugins.terminal:243.23654.183
intellijIdeaCommunity(“2024.1.1”)