Re: RFR: 8331535: Incorrect prompt for Console.readLine [v6]

2024-05-10 Thread Adam Sotona
On Fri, 10 May 2024 15:32:07 GMT, Jan Lahoda wrote: >> When JLine reads a line, there may be a prompt provided. However, JLine will >> not interpret the prompt literally, it will handle `%` specially. As a >> consequence, doing: >> >> System.console().readLine("%%s"); >> >> >> will not

Re: RFR: 8331535: Incorrect prompt for Console.readLine [v6]

2024-05-10 Thread Jan Lahoda
> When JLine reads a line, there may be a prompt provided. However, JLine will > not interpret the prompt literally, it will handle `%` specially. As a > consequence, doing: > > System.console().readLine("%%s"); > > > will not print `%s`, as first `String.format` is used, which will convert