RFR: 8332314: Add window size configuration option to JavaShellToolBuilder interface [v3]
Jan Lahoda
jlahoda at openjdk.org
Thu Jun 20 11:49:13 UTC 2024
On Tue, 18 Jun 2024 16:24:02 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:
>> When launching JShell programmatically (i.e., from a Java program instead of the command line) for an interactive session, it's not currently possible to inform JShell what the terminal window's dimensions are. As a result, JShell defaults to 80x24 and line editing becomes almost impossible because of the scrambled screen contents unless you happen to be using an 80x24 window, which these days is very unlikely.
>>
>> This patch adds a new method `JavaShellToolBuilder.windowSize()` which allows passing a "hint" for the number of rows & columns.
>
> Archie Cobbs has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains seven additional commits since the last revision:
>
> - Copyright years should be followed by a comma.
> - Merge branch 'master' into JavaShellToolBuilder.windowSize
> - Bump @since tag 23 -> 24.
> - Merge branch 'master' into JavaShellToolBuilder.windowSize
> - Update copyright years.
> - Fix typo in exception message.
> - Add new method JavaShellToolBuilder.windowSize().
Looks good, thanks!
-------------
Marked as reviewed by jlahoda (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/19226#pullrequestreview-2130205821
More information about the kulla-dev
mailing list