In the latest version of IDEA, the TerminalToolWindowManager.createLocalShellWidget()
method is no longer functional. The TerminalToolWindowManager.createShellWidget
method now returns a TerminalWidget
type, which varies depending on the terminal engine selected in the settings. This can be TerminalWidgetBridge
, TerminalWidgetImpl
, or ReworkedTerminalWidget
. Consequently, I am unable to use ShellTerminalWidget.getTerminalTextBuffer()
to retrieve the terminal command execution results. Is there a solution for obtaining command execution results with the new terminal engine?
Hello! At the moment it is possible only for the Classic Terminal (ShellTerminalWidget
).
Other two engines has only internal API now, because they are not fully released.
We have plans to create the good public API for the Reworked Terminal.
But I have no ETA yet
Hello! we also have some critical functionality depending on ability to read commmand execution results.
would it be possible to make api to view which engine is currently selected not internal? otherwise we can’t inform users before actually trying to open terminal session
@ivankov.vladimir hello! Sorry for such a long delay.
Please follow IJPL-192424. We plan to include this change to 2025.2 release.
@rfc1s1y hello! I have an update regarding obtaining the text from the ReworkedTerminalWidget
. We plan to add the getText
method to the TerminalWidget
in 2025.2, so all terminal implementations will support it. Please follow IJPL-192386.