Skip to content

Commit 8190bb7

Browse files
committed
GROOVY-8162: Update Groovysh to JLine3 (minor tweaks)
1 parent d81b366 commit 8190bb7

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ to https://github.com/jline/jline3[JLine3].
3737
* ANSI colors (prompt, exception traces, etc).
3838
* Simple, yet robust, command system with online help, user alias
3939
support and more.
40-
* User profile support
4140
4241
[[GroovyShell-Command-lineOptionsandArguments]]
4342
=== Command-line Options and Arguments
@@ -193,8 +192,8 @@ Multi-line/complex expressions (like closure or class definitions) may
193192
be defined over several lines. When the shell detects that it has a
194193
complete expression it will compile and evaluate it.
195194
196-
[[GroovyShell-DefineaClass]]
197-
===== Define a Class
195+
[[GroovyShell-DefineTypes]]
196+
==== Defining types
198197
199198
You can define all the normal types, e.g. a class:
200199
@@ -218,9 +217,7 @@ baz
218217
219218
Defined classes are known to the shell and can be used in completion:
220219
221-
image:assets/img/repl_typedef.png[Define Class, width=60%]
222-
223-
[[GroovyShell-VariablesandMethods]]
220+
image:assets/img/repl_typedef.png[Define Class, width=50%]
224221
225222
[[GroovyShell-Variables]]
226223
==== Variables
@@ -388,6 +385,14 @@ Displays the available colors.
388385
389386
image:assets/img/repl_colors.png[Colors, width=80%]
390387
388+
This can be useful when configuring the console options, for example the `PRNT_COLORS`:
389+
390+
image:assets/img/repl_colors2.png[Colors, width=80%]
391+
392+
As this example shows, you can mix color names, theme colors, and color numbers.
393+
See the https://github.com/jline/jline3/wiki/REPL-Console-Customization[REPL Console Customization]
394+
documentation for more details about such customization.
395+
391396
[[GroovyShell-console]]
392397
==== `/console`
393398

0 commit comments

Comments
 (0)