Attempting something like this:
Reader consoleIn = console.getIn();
BufferedReader bufConsoleIn = new BufferedReader((InputStreamReader)consoleIn);
...
String line = bufConsoleIn.readLine();
Will block.
The "unicode patch" applied to acceptLine() in JConsole.java is incompatible with readLine(). This flaw makes JConsole much less useful for applications outside the built-in interpreter.
Ticket has been migrated to github.
Please follow up on this over here: https://github.com/beanshell/beanshell/issues/469