RFR 8166183: jshell tool: on return from Ctrl-Z, garbage on screen, dies with Ctrl-C
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:
> 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.)
> jdk repository:
> langtools repository:
> nashorn repository:
> Any feedback is welcome.
More information about the nashorn-dev