code-maven.com icon indicating copy to clipboard operation
code-maven.com copied to clipboard

Confirmed: System.console() does not work from IDE

Open sbb opened this issue 3 years ago • 1 comments

https://code-maven.com/groovy-read-from-stdin

I read your article at the URL above, and can confirm that from within an IDE (IntelliJ IDEA), when running the code in a "Run" window, System.console() returns null, and thus readLine is not available on it. System.in.newReader().readLine() does work fine in this environment.

sbb avatar May 25 '22 20:05 sbb

thanks

szabgab avatar May 26 '22 04:05 szabgab