Java Console Pushes Input Text When Logging Occurs

Viewed 201

Through MobaXterm's SSH feature, I'm running a Java application on a remote Linux server. A problem arises when I attempt to type into the terminal (to process user input requests via Scanner) and any logging occurs. The text I'm typing is automatically pushed into the logging section when any print statements happen.

Clarifying example:

  1. I manually type "MY_INPUT_TO_SET_SOME_VARIABLE 50" into the console (and never press ENTER).

    enter image description here

  2. Some logging on the server occurs and automatically "sends" the manually typed "MY_INPUT_TO_SET_SOME_VARIABLE 50" into the display area.

    enter image description here

    (above, you can see 50 is appended to 09:08 when I never pressed enter).

The desired behavior is to allow the power user to simply type text in the terminal's text area (or somewhere reasonable) until the ENTER key is pressed. The text in the terminal's text area should not automatically be pushed upon logged or printed statements. I looked in terminal settings and wasn't able to find anything to modify this behavior.

1 Answers
Related