User input for console/terminal
Answered
Hi.
Our team is developing Intellij plugin for working with mainframes. The mainframe has some sort of specific command line (like shell, or windows cmd) called TSO/E which can execute different commands. We found a way how to display command output. But we are stuck on the task to handle user input and to send this input to the mainframe. The console view is always "read-only". So how we can develop custom terminal that will accept the user input and print the command output?
Please sign in to leave a comment.
Hi,
You can register custom terminals via the org.jetbrains.plugins.terminal.openPredefinedTerminalProvider extension point. Take a look at:
https://github.com/JetBrains/intellij-community/blob/master/plugins/terminal/src/org/jetbrains/plugins/terminal/ui/OpenPredefinedTerminalActionProvider.kt
See also:
https://github.com/JetBrains/intellij-community/blob/master/plugins/terminal/src/org/jetbrains/plugins/terminal/TerminalNewPredefinedSessionAction.java