This is an automated email from the ASF dual-hosted git repository. paulk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 8190bb7cf7fe1ef864625eb08b338f6d1ccfa2bb Author: Paul King <pa...@asert.com.au> AuthorDate: Wed Aug 6 16:30:58 2025 +1000 GROOVY-8162: Update Groovysh to JLine3 (minor tweaks) --- subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc b/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc index 0916b8b0c5..7784208023 100644 --- a/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc +++ b/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc @@ -37,7 +37,6 @@ to https://github.com/jline/jline3[JLine3]. * ANSI colors (prompt, exception traces, etc). * Simple, yet robust, command system with online help, user alias support and more. -* User profile support [[GroovyShell-Command-lineOptionsandArguments]] === Command-line Options and Arguments @@ -193,8 +192,8 @@ Multi-line/complex expressions (like closure or class definitions) may be defined over several lines. When the shell detects that it has a complete expression it will compile and evaluate it. -[[GroovyShell-DefineaClass]] -===== Define a Class +[[GroovyShell-DefineTypes]] +==== Defining types You can define all the normal types, e.g. a class: @@ -218,9 +217,7 @@ baz Defined classes are known to the shell and can be used in completion: -image:assets/img/repl_typedef.png[Define Class, width=60%] - -[[GroovyShell-VariablesandMethods]] +image:assets/img/repl_typedef.png[Define Class, width=50%] [[GroovyShell-Variables]] ==== Variables @@ -388,6 +385,14 @@ Displays the available colors. image:assets/img/repl_colors.png[Colors, width=80%] +This can be useful when configuring the console options, for example the `PRNT_COLORS`: + +image:assets/img/repl_colors2.png[Colors, width=80%] + +As this example shows, you can mix color names, theme colors, and color numbers. +See the https://github.com/jline/jline3/wiki/REPL-Console-Customization[REPL Console Customization] +documentation for more details about such customization. + [[GroovyShell-console]] ==== `/console`