Feedback modes

Command-line tools usually provide relatively sparse feedback in an effort to not overcrowd the screen, otherwise, it may become a nuisance to developers. JShell has several feedback modes in addition to giving developers the ability to create their own custom modes.

As you can see, in the following screenshot, there are four feedback modes: concise, normal, silent, and verbose. We can enter the /set feedback command without any parameters to list the feedback modes as well as to identify the current feedback mode. The first line of output (see the following screenshot) displays the command-line command and argument set that would be used to set the feedback mode:

We can dictate which mode we want to enter when we first enter ...

Get Mastering Java 11 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.