0
When running a command line app (I'm going $ gradle run
in fact, I don't know whether this might be significant), if I inadvertently press the up arrow and then press the down arrow to get back to the prompt line (i.e. in my app) and the press Return, and examine the string entered I'll see something like this:
No index open
> q
you entered: |a aaaq|
... here I only typed "q<Return>
" after using the arrow keys... but they've added some funny stuff before the 'q'.
To obtain the user input I'm doing this (Groovy):
response = System.in.newReader().readLine()
Is there any way to make arrow keys (and others which might do something similar) "silent"? NB I have no idea whether this also applies to *nix BASH...