RFR 8166183: jshell tool: on return from Ctrl-Z, garbage on screen, dies with Ctrl-C

Robert Field robert.field at oracle.com
Fri Sep 30 15:06:28 UTC 2016

Thumbs up on langtools and JDK.

Thanks!  Great to have this.


On September 30, 2016 2:50:46 AM Jan Lahoda <jan.lahoda at oracle.com> wrote:

> Hello,
> When jshell or jjs are suspended and resumed, the terminal is reset to
> un-raw/cooked mode and jline editing is not working properly (as that
> requires raw mode). The solution I know about is to reset the terminal
> to raw mode on resume. This can be achieved using
> jdk.internal.misc.Signal (or sun.misc.Signal), which seems mostly fine
> to me for jshell and jjs, as s.m.Signal is a critical internal API per
> JEP 260. (Use of Signal would seem less fine to me in jdk.internal.le,
> as Signal is still an internal API.)
> Bug:
> https://bugs.openjdk.java.net/browse/JDK-8166183
> Webrevs:
> jdk repository:
> http://cr.openjdk.java.net/~jlahoda/8166183/jdk.00/
> langtools repository:
> http://cr.openjdk.java.net/~jlahoda/8166183/langtools.00/
> nashorn repository:
> http://cr.openjdk.java.net/~jlahoda/8166183/nashorn.00/
> Any feedback is welcome.
> Thanks,
>       Jan

More information about the nashorn-dev mailing list