How can I read data written to the project's terminal?
Answered
Hello!
I am writing a plugin that writes code changes, and for full functionality, I would like to also read what is happening in the terminal: user input commands and the output of it
After a brief study of the SDK, it seems to me that the 'terminal' package is located in the internal API. Is there any accessible way to use it?
Please sign in to leave a comment.
What exactly do you mean with “the terminal”? The Terminal tool window? A run configuration output window? Please explain your use case in more detail.
For Terminal toolwindow: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360005329339-Execute-command-in-the-terminal-from-plugin-action?page=1#community_comment_360002356920
Yann Cebron Thanks! I wouldlike to listen and record content changes for all tabs in the terminal (not execute anywhere) like DocumentListener. Is it possible via toolwindow only?
Sorry, I do not quite understand your last question. Could you please provide a screenshot from IDE of what you mean exactly? Thanks.