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?
1 Like
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