RFR: 8352693: Use a simpler console reader instead of JLine for System.console()
Naoto Sato
naoto at openjdk.org
Mon Mar 31 17:20:18 UTC 2025
On Mon, 31 Mar 2025 17:04:55 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
>> src/jdk.internal.le/share/classes/jdk/internal/console/SimpleConsoleReader.java line 69:
>>
>>> 67: case 4: break READ; //EOF/Ctrl-D
>>> 68: case 127:
>>> 69: //backspace:
>>
>> Is it `delete`?
>
> I don't think so. Delete is an escape sequence (`\033[3~`).
Hmm, that's interesting. In ASCII control codes, 127 is defined as `Delete` and 08 is defined as `Backspace`
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24242#discussion_r2021427938
More information about the core-libs-dev
mailing list