I've been trying to code an app that allows me to open multiple Console sessions (in windows that would be cmd.exe) in a Tabbed fashion way.
One of the most important references I've found is in the following URL where I was able to get a TextAreaOutputStream code to be able to read the STDOUT fron the Process, but this and most of the references around the internet does not solve/fix the issue I'm dealing with.
Reference: Create Java console inside a GUI panel
Even when redirecting the STDOUT, STDERR and STDIN caused me some troubles, the worst part comes when the command you type within the Java Console in one of the tabs executes a command that creates a child process, it's here when my Java applications loses control because a new process was created in the background. Basically, the new child process is out of bound and I'm not able to receive or send any bytes to it and my app hangs.
- JVM
- MyTabbedConsoleApp
- cmd.exe /k (I can still communicate with this one, no problems until here)
- apptrack.exe (a child process out of bound from my app, no communication with this, the app hangs)
- cmd.exe /k (I can still communicate with this one, no problems until here)
- MyTabbedConsoleApp
I'm looking for a better way to create an app that pretty much mimics the Console environment.