Integrated: 8332314: Add window size configuration option to JavaShellToolBuilder interface
Archie Cobbs
acobbs at openjdk.org
Fri Jun 21 10:47:14 UTC 2024
On Tue, 14 May 2024 02:00:20 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.
This pull request has now been integrated.
Changeset: 08ace27d
Author: Archie Cobbs <acobbs at openjdk.org>
Committer: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/08ace27da1d9cd215c77471eabf41417ff6282d2
Stats: 46 lines in 4 files changed: 35 ins; 1 del; 10 mod
8332314: Add window size configuration option to JavaShellToolBuilder interface
Reviewed-by: jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/19226
More information about the kulla-dev
mailing list