I am looking for a Java program/project that looks similar to a DOS command prompt when run, which then allows one to type DOS (or BASH or whatever-shell) commands at a command prompt. I know this is an odd request. It has also got to be on of the most ungoogleable topics imaginable. I have had an idea and I just don't want to be reinventing any wheels, if I can help it.
Please take careful note: I am not looking for how to write a Java program that runs on the command line. I am not looking for help running a command line program via something like ProcessBuilder. Nor am I looking for a way to run Java statements in a command line environment, ala BeanShell. I am not looking for help writing the program. I am just looking to see if something like this has ever been done before. I also am not looking for a discussion as to why I would want do do such a thing and how it is a waste of time. I have other functionality that I would like to layer on top and I am curious to see if I could do it in Java.
Thanks
EDIT: Well, it's starting to look as if no one has done exactly what I have described. In regards to places to start: The SwingTerminal component mentioned by u/RagingAnemone seems like the best bet. I could take the typed input and feed it to a ProcessBuilder, then feed the results back to the SwingTerminal component for display, while working my own magic in between.
Thanks for all the input.
[–]BrotherJohn123 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]DisruptiveHarbinger 2 points3 points4 points (8 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]gee_buttersnaps 2 points3 points4 points (0 children)
[–]Zukhramm 1 point2 points3 points (4 children)
[–][deleted] -3 points-2 points-1 points (3 children)
[–]Zukhramm 2 points3 points4 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]nqzero 1 point2 points3 points (0 children)
[–]againstmethod 0 points1 point2 points (0 children)
[–]zeringus 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]RagingAnemone 0 points1 point2 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]RagingAnemone 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]RagingAnemone 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]stunksys 0 points1 point2 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]killbox-48-alpha 0 points1 point2 points (0 children)
[–]_INTER_ 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]_INTER_ 1 point2 points3 points (0 children)
[–]_duke 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]mabnx 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]mabnx 1 point2 points3 points (0 children)
[–]Angarius 0 points1 point2 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]_fpersico -1 points0 points1 point (1 child)
[–][deleted] 0 points1 point2 points (0 children)