FFM is the canonical choice for Java 22+, but it has some issues (mainly crashing the JVM on window resize), see jline/jline3#2139 and jline/jline3#2141 Downgrading to 4.0.x isn't an option as it re-introduces CVE-2026-77420..77423 Once the referenced PR gets merged and released, jline should be bumped to jline-terminal-ffm's latest version again