Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create custom feedback mode in jshell

As from the documentation of /set feedback in jshell, there are following built-in modes:

verbose, normal, concise, and silent

Is it possible to create a feedback mode with the functionality of both concise and silent? Or we can change any one of the above mode? Or can we create our own custom feedback mode?

like image 262
KayV Avatar asked Feb 01 '26 04:02

KayV


1 Answers

You can create your own custom feedback mode using the command:

/set mode <your-mode-name> -command|-quiet

where the -command option indicates that you want command feedback. If you don't want commands to describe the action that occurred, then use -quiet instead of -command.

If you want to copy an existing mode, you can do that as:

/set mode <your-mode-name> <existing-mode-name> -command|-quiet

For example

/set mode samplemode concise -command

In order to merge the functionality of both, you might have to edit the attributes from the command line for one that you didn't initially copy from.

like image 125
Naman Avatar answered Feb 03 '26 10:02

Naman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!