How can an OS process running in a ConsoleView displayed in a ToolWindow receive a Ctrl-C from the user?
I have successfully created an action in the main editor's right-click menu that opens a new tool window and displays the live output of a running process — in this simple example, the "cat" command. I have tested and confirmed that input typed into the window is sent to "cat" when I hit Enter (the confirmation is that "cat" echoes each line back).
My action, which is attached, follows the example attached to the last post at:
But control C does not work. What am I missing in my code that would allow not just normal characters typed into the window to be received by the process, but also allow a Ctrl-C pressed while the window is selected to send a signal to the process? Thanks for any help!
Please sign in to leave a comment.
How do I add an attachment? I don't see a button for it. This text field is not honoring the indentation properly, but here's the Java as a code block: