This is an additional fix to JDK-8321131, where more clearing is required in JLine.
------------- Commit messages: - initial commit Changes: https://git.openjdk.org/jdk/pull/17004/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17004&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8321409 Stats: 12 lines in 3 files changed: 11 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17004.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17004/head:pull/17004 PR: https://git.openjdk.org/jdk/pull/17004