How to access the new BetaTerminal using the org.jetbrains.intellij.platform - 2.2.1
已回答
Hi Jetbrains Team,
I'm trying to create a plugin which execute commands in the jetbrains IDE Terminal and also read the output.
For the existing Terminal(Legacy Terminal) I'm able to read the output using the termianlTextBuffer in the class JBTerminalWidget, but for the beta terminal(out in block format), I'm unable to find a method which can read the output in the blocks.
Is it under development or the do I need to update my library version?
By Legacy Terminal I mean -

By Beta Terminal

请先登录再写评论。
There is no access to the output right now. Please watch https://youtrack.jetbrains.com/issue/IJPL-176940 for the updates. Would be great if you could describe there your case in more details – what kind of text would you like to read there: prompt / command / command output / any text.
Right now, the new BetaTerminal in
org.jetbrains.intellij.platform - 2.2.1
does not provide direct access to output in block format. Unlike the Legacy Terminal, which allows reading output throughterminalTextBuffer
inJBTerminalWidget
, the BetaTerminal does not yet have a method for capturing output. This feature is still in development, and the best way to stay updated is by following the JetBrains YouTrack issue IJPL-176940. If you have a specific use case like pprints adding details there could help prioritize the feature. Are you looking to capture just command outputs, or do you need full interaction with prompts as well?