0

I want to make a program show the console output of a running CLI program, i.e. Minecraft server. But within a gui. So buttons and stuff for configuration of the server and then a console on one side to display server side events.

To clarify. I'm not wanting someone to tell me how to talk to the server. I'm wanting help with the gui code.

NathanJ
  • 25
  • 7

1 Answers1

0

There are two options I see here:

  • You could have the CLI visible and control its position; with a hole cut in the region of your form to fit in the CLI. This might work well without a lot of work.

  • Or you could make the CLI run invisibly and capture its output and also its error output and display them in a TextBox. This is a bit harder, especially if you also want to send commands. To do this you would probably use a 2nd textbox as an input area.

I have done something similar and you may want to have alook at some of my code in the answer to my own question.

The challenge in version 2 is to keep the input and output stream in synch and running.

Community
  • 1
  • 1
TaW
  • 53,122
  • 8
  • 69
  • 111