If there is no input on terminal screen and enter key is pressed, the host returns an error ("unknown command")

I want to prevent the enter key to send the input if there is no data. Is it possible?

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.