User input for console/terminal



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?