src/jdk.jshell/share/man/jshell.1
author stefank
Mon, 25 Nov 2019 12:32:40 +0100
changeset 59251 4cbfa5077d68
parent 55140 d4890c3721be
permissions -rw-r--r--
8234739: Harmonize parameter order in Atomic - xchg Reviewed-by: rehn, dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55140
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
     1
.\"t
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
     2
.\" Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
     3
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
     4
.\"
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
     5
.\" This code is free software; you can redistribute it and/or modify it
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
     6
.\" under the terms of the GNU General Public License version 2 only, as
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
     7
.\" published by the Free Software Foundation.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
     8
.\"
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
     9
.\" This code is distributed in the hope that it will be useful, but WITHOUT
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    10
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    11
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    12
.\" version 2 for more details (a copy is included in the LICENSE file that
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    13
.\" accompanied this code).
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    14
.\"
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    15
.\" You should have received a copy of the GNU General Public License version
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    16
.\" 2 along with this work; if not, write to the Free Software Foundation,
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    17
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    18
.\"
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    19
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    20
.\" or visit www.oracle.com if you need additional information or have any
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    21
.\" questions.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    22
.\"
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    23
.\" Automatically generated by Pandoc 2.3.1
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    24
.\"
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    25
.TH "JSHELL" "1" "2018" "JDK 13" "JDK Commands"
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    26
.hy
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    27
.SH NAME
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    28
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    29
jshell \- interactively evaluate declarations, statements, and
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    30
expressions of the Java programming language in a read\-eval\-print loop
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    31
(REPL)
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    32
.SH SYNOPSIS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    33
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    34
\f[CB]jshell\f[R] [\f[I]options\f[R]] [\f[I]load\-files\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    35
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    36
.B \f[I]options\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    37
Command\-line options, separated by spaces.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    38
See \f[B]Options for jshell\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    39
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    40
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    41
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    42
.B \f[I]load\-files\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    43
One or more scripts to run when the tool is started.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    44
Scripts can contain any valid code snippets or JShell commands.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    45
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    46
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    47
The script can be a local file or one of following predefined scripts:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    48
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    49
.B \f[CB]DEFAULT\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    50
Loads the default entries, which are commonly used as imports.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    51
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    52
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    53
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    54
.B \f[CB]JAVASE\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    55
Imports all Java SE packages.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    56
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    57
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    58
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    59
.B \f[CB]PRINTING\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    60
Defines \f[CB]print\f[R], \f[CB]println\f[R], and \f[CB]printf\f[R] as
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    61
\f[CB]jshell\f[R] methods for use within the tool.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    62
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    63
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    64
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    65
For more than one script, use a space to separate the names.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    66
Scripts are run in the order in which they\[aq]re entered on the command
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    67
line.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    68
Command\-line scripts are run after startup scripts.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    69
To run a script after JShell is started, use the \f[CB]/open\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    70
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    71
To accept input from standard input and suppress the interactive I/O,
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    72
enter a hyphen (\-) for \f[I]load\-files\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    73
This option enables the use of the \f[CB]jshell\f[R] tool in pipe chains.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    74
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    75
.SH DESCRIPTION
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    76
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    77
JShell provides a way to interactively evaluate declarations,
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    78
statements, and expressions of the Java programming language, making it
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    79
easier to learn the language, explore unfamiliar code and APIs, and
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    80
prototype complex code.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    81
Java statements, variable definitions, method definitions, class
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    82
definitions, import statements, and expressions are accepted.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    83
The bits of code entered are called snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    84
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    85
As snippets are entered, they\[aq]re evaluated, and feedback is
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    86
provided.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    87
Feedback varies from the results and explanations of actions to nothing,
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    88
depending on the snippet entered and the feedback mode chosen.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    89
Errors are described regardless of the feedback mode.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    90
Start with the verbose mode to get the most feedback while learning the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    91
tool.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    92
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    93
Command\-line options are available for configuring the initial
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    94
environment when JShell is started.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    95
Within JShell, commands are available for modifying the environment as
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    96
needed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    97
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    98
Existing snippets can be loaded from a file to initialize a JShell
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
    99
session, or at any time within a session.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   100
Snippets can be modified within the session to try out different
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   101
variations and make corrections.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   102
To keep snippets for later use, save them to a file.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   103
.SH OPTIONS FOR JSHELL
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   104
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   105
.B \f[CB]\-\-add\-modules\f[R] \f[I]module\f[R][\f[CB],\f[R]\f[I]module\f[R]...]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   106
Specifies the root modules to resolve in addition to the initial module.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   107
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   108
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   109
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   110
.B \f[CB]\-C\f[R]\f[I]flag\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   111
Provides a flag to pass to the compiler.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   112
To pass more than one flag, provide an instance of this option for each
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   113
flag or flag argument needed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   114
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   115
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   116
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   117
.B \f[CB]\-\-class\-path\f[R] \f[I]path\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   118
Specifies the directories and archives that are searched to locate class
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   119
files.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   120
This option overrides the path in the \f[CB]CLASSPATH\f[R] environment
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   121
variable.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   122
If the environment variable isn\[aq]t set and this option isn\[aq]t
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   123
used, then the current directory is searched.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   124
For Oracle Solaris, Linux, and macOS, use a colon (:) to separate items
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   125
in the path.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   126
For Windows, use a semicolon (;) to separate items.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   127
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   128
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   129
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   130
.B \f[CB]\-\-feedback\f[R] \f[I]mode\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   131
Sets the initial level of feedback provided in response to what\[aq]s
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   132
entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   133
The initial level can be overridden within a session by using the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   134
\f[CB]/set\ feedback\f[R] \f[I]mode\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   135
The default is \f[CB]normal\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   136
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   137
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   138
The following values are valid for \f[I]mode\f[R]:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   139
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   140
.B \f[CB]verbose\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   141
Provides detailed feedback for entries.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   142
Additional information about the action performed is displayed after the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   143
result of the action.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   144
The next prompt is separated from the feedback by a blank line.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   145
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   146
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   147
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   148
.B \f[CB]normal\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   149
Provides an average amount of feedback.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   150
The next prompt is separated from the feedback by a blank line.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   151
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   152
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   153
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   154
.B \f[CB]concise\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   155
Provides minimal feedback.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   156
The next prompt immediately follows the code snippet or feedback.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   157
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   158
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   159
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   160
.B \f[CB]silent\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   161
Provides no feedback.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   162
The next prompt immediately follows the code snippet.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   163
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   164
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   165
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   166
.B \f[I]custom\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   167
Provides custom feedback based on how the mode is defined.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   168
Custom feedback modes are created within JShell by using the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   169
\f[CB]/set\ mode\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   170
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   171
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   172
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   173
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   174
.B \f[CB]\-\-help\f[R] or \f[CB]\-h\f[R] or \f[CB]\-?\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   175
Prints a summary of standard options and exits the tool.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   176
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   177
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   178
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   179
.B \f[CB]\-\-help\-extra\f[R] or \f[CB]\-X\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   180
Prints a summary of nonstandard options and exits the tool.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   181
Nonstandard options are subject to change without notice.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   182
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   183
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   184
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   185
.B \f[CB]\-J\f[R]\f[I]flag\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   186
Provides a flag to pass to the runtime system.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   187
To pass more than one flag, provide an instance of this option for each
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   188
flag or flag argument needed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   189
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   190
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   191
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   192
.B \f[CB]\-\-module\-path\f[R] \f[I]modulepath\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   193
Specifies where to find application modules.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   194
For Oracle Solaris, Linux, and macOS, use a colon (:) to separate items
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   195
in the path.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   196
For Windows, use a semicolon (;) to separate items.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   197
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   198
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   199
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   200
.B \f[CB]\-\-no\-startup\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   201
Prevents startup scripts from running when JShell starts.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   202
Use this option to run only the scripts entered on the command line when
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   203
JShell is started, or to start JShell without any preloaded information
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   204
if no scripts are entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   205
This option can\[aq]t be used if the \f[CB]\-\-startup\f[R] option is
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   206
used.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   207
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   208
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   209
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   210
.B \f[CB]\-q\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   211
Sets the feedback mode to \f[CB]concise\f[R], which is the same as
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   212
entering \f[CB]\-\-feedback\ concise\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   213
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   214
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   215
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   216
.B \f[CB]\-R\f[R]\f[I]flag\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   217
Provides a flag to pass to the remote runtime system.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   218
To pass more than one flag, provide an instance of this option for each
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   219
flag or flag argument to pass.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   220
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   221
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   222
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   223
.B \f[CB]\-s\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   224
Sets the feedback mode to \f[CB]silent\f[R], which is the same as entering
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   225
\f[CB]\-\-feedback\ silent\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   226
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   227
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   228
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   229
.B \f[CB]\-\-show\-version\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   230
Prints version information and enters the tool.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   231
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   232
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   233
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   234
.B \f[CB]\-\-startup\f[R] \f[I]file\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   235
Overrides the default startup script for this session.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   236
The script can contain any valid code snippets or commands.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   237
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   238
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   239
The script can be a local file or one of the following predefined
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   240
scripts:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   241
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   242
.B \f[CB]DEFAULT\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   243
Loads the default entries, which are commonly used as imports.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   244
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   245
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   246
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   247
.B \f[CB]JAVASE\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   248
Imports all Java SE packages.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   249
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   250
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   251
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   252
.B \f[CB]PRINTING\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   253
Defines \f[CB]print\f[R], \f[CB]println\f[R], and \f[CB]printf\f[R] as
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   254
\f[CB]jshell\f[R] methods for use within the tool.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   255
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   256
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   257
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   258
For more than one script, provide a separate instance of this option for
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   259
each script.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   260
Startup scripts are run when JShell is first started and when the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   261
session is restarted with the \f[CB]/reset\f[R], \f[CB]/reload\f[R], or
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   262
\f[CB]/env\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   263
Startup scripts are run in the order in which they\[aq]re entered on the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   264
command line.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   265
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   266
This option can\[aq]t be used if the \f[CB]\-\-no\-startup\f[R] option is
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   267
used.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   268
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   269
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   270
.B \f[CB]\-v\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   271
Sets the feedback mode to \f[CB]verbose\f[R], which is the same as
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   272
entering \f[CB]\-\-feedback\ verbose\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   273
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   274
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   275
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   276
.B \f[CB]\-\-version\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   277
Prints version information and exits the tool.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   278
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   279
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   280
.SH JSHELL COMMANDS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   281
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   282
Within the \f[CB]jshell\f[R] tool, commands are used to modify the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   283
environment and manage code snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   284
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   285
.B \f[CB]/drop\f[R] {\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]} [{\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]}...]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   286
Drops snippets identified by name, ID, or ID range, making them
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   287
inactive.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   288
For a range of IDs, provide the starting ID and ending ID separated with
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   289
a hyphen.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   290
To provide a list, separate the items in the list with a space.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   291
Use the \f[CB]/list\f[R] command to see the IDs of code snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   292
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   293
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   294
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   295
.B \f[CB]/edit\f[R] [\f[I]option\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   296
Opens an editor.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   297
If no option is entered, then the editor opens with the active snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   298
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   299
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   300
The following options are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   301
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   302
.B {\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]} [{\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]}...]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   303
Opens the editor with the snippets identified by name, ID, or ID range.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   304
For a range of IDs, provide the starting ID and ending ID separated with
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   305
a hyphen.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   306
To provide a list, separate the items in the list with a space.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   307
Use the \f[CB]/list\f[R] command to see the IDs of code snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   308
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   309
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   310
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   311
.B \f[CB]\-all\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   312
Opens the editor with all snippets, including startup snippets and
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   313
snippets that failed, were overwritten, or were dropped.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   314
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   315
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   316
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   317
.B \f[CB]\-start\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   318
Opens the editor with startup snippets that were evaluated when JShell
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   319
was started.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   320
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   321
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   322
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   323
To exit edit mode, close the editor window, or respond to the prompt
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   324
provided if the \f[CB]\-wait\f[R] option was used when the editor was set.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   325
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   326
Use the \f[CB]/set\ editor\f[R] command to specify the editor to use.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   327
If no editor is set, then the following environment variables are
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   328
checked in order: \f[CB]JSHELLEDITOR\f[R], \f[CB]VISUAL\f[R], and
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   329
\f[CB]EDITOR\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   330
If no editor is set in JShell and none of the editor environment
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   331
variables is set, then a simple default editor is used.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   332
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   333
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   334
.B \f[CB]/env\f[R] [\f[I]options\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   335
Displays the environment settings, or updates the environment settings
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   336
and restarts the session.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   337
If no option is entered, then the current environment settings are
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   338
displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   339
If one or more options are entered, then the session is restarted as
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   340
follows:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   341
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   342
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   343
Updates the environment settings with the provided options.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   344
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   345
Resets the execution state.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   346
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   347
Runs the startup scripts.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   348
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   349
Silently replays the history in the order entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   350
The history includes all valid snippets or \f[CB]/drop\f[R] commands
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   351
entered at the \f[CB]jshell\f[R] prompt, in scripts entered on the command
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   352
line, or scripts entered with the \f[CB]/open\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   353
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   354
Environment settings entered on the command line or provided with a
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   355
previous \f[CB]/reset\f[R], \f[CB]/env\f[R], or \f[CB]/reload\f[R] command are
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   356
maintained unless an \f[I]option\f[R] is entered that overwrites the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   357
setting.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   358
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   359
The following options are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   360
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   361
.B \f[CB]\-\-add\-modules\f[R] \f[I]module\f[R][\f[CB],\f[R]\f[I]module\f[R]...]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   362
Specifies the root modules to resolve in addition to the initial module.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   363
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   364
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   365
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   366
.B \f[CB]\-\-add\-exports\f[R] \f[I]source\-module\f[R]\f[CB]/\f[R]\f[I]package\f[R]\f[CB]=\f[R]\f[I]target\-module\f[R][\f[CB],\f[R]\f[I]target\-module\f[R]]*
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   367
Adds an export of \f[I]package\f[R] from \f[I]source\-module\f[R] to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   368
\f[I]target\-module\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   369
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   370
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   371
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   372
.B \f[CB]\-\-class\-path\f[R] \f[I]path\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   373
Specifies the directories and archives that are searched to locate class
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   374
files.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   375
This option overrides the path in the \f[CB]CLASSPATH\f[R] environment
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   376
variable.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   377
If the environment variable isn\[aq]t set and this option isn\[aq]t
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   378
used, then the current directory is searched.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   379
For Oracle Solaris, Linux, and macOS, use a colon (\f[CB]:\f[R]) to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   380
separate items in the path.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   381
For Windows, use a semicolon (\f[CB];\f[R]) to separate items.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   382
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   383
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   384
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   385
.B \f[CB]\-\-module\-path\f[R] \f[I]modulepath\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   386
Specifies where to find application modules.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   387
For Oracle Solaris, Linux, and macOS, use a colon (\f[CB]:\f[R]) to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   388
separate items in the path.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   389
For Windows, use a semicolon (\f[CB];\f[R]) to separate items.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   390
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   391
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   392
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   393
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   394
.B \f[CB]/exit\f[R] [\f[I]integer\-expression\-snippet\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   395
Exits the tool.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   396
If no snippet is entered, the exit status is zero.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   397
If a snippet is entered and the result of the snippet is an integer, the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   398
result is used as the exit status.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   399
If an error occurs, or the result of the snippet is not an integer, an
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   400
error is displayed and the tool remains active.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   401
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   402
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   403
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   404
.B \f[CB]/history\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   405
Displays what was entered in this session.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   406
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   407
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   408
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   409
.B \f[CB]/help\f[R] [\f[I]command\f[R]|\f[I]subject\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   410
Displays information about commands and subjects.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   411
If no options are entered, then a summary of information for all
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   412
commands and a list of available subjects are displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   413
If a valid command is provided, then expanded information for that
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   414
command is displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   415
If a valid subject is entered, then information about that subject is
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   416
displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   417
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   418
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   419
The following values for \f[I]subject\f[R] are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   420
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   421
.B \f[CB]context\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   422
Describes the options that are available for configuring the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   423
environment.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   424
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   425
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   426
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   427
.B \f[CB]intro\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   428
Provides an introduction to the tool.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   429
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   430
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   431
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   432
.B \f[CB]shortcuts\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   433
Describes keystrokes for completing commands and snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   434
See \f[B]Input Shortcuts\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   435
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   436
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   437
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   438
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   439
.B \f[CB]/imports\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   440
Displays the current active imports, including those from the startup
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   441
scripts and scripts that were entered on the command line when JShell
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   442
was started.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   443
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   444
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   445
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   446
.B \f[CB]/list\f[R] [\f[I]option\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   447
Displays a list of snippets and their IDs.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   448
If no option is entered, then all active snippets are displayed, but
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   449
startup snippets aren\[aq]t.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   450
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   451
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   452
The following options are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   453
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   454
.B {\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]} [{\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]}...]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   455
Displays the snippets identified by name, ID, or ID range.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   456
For a range of IDs, provide the starting ID and ending ID separated with
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   457
a hyphen.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   458
To provide a list, separate the items in the list with a space.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   459
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   460
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   461
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   462
.B \f[CB]\-all\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   463
Displays all snippets, including startup snippets and snippets that
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   464
failed, were overwritten, or were dropped.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   465
IDs that begin with \f[CB]s\f[R] are startup snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   466
IDs that begin with \f[CB]e\f[R] are snippets that failed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   467
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   468
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   469
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   470
.B \f[CB]\-start\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   471
Displays startup snippets that were evaluated when JShell was started.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   472
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   473
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   474
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   475
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   476
.B \f[CB]/methods\f[R] [\f[I]option\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   477
Displays information about the methods that were entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   478
If no option is entered, then the name, parameter types, and return type
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   479
of all active methods are displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   480
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   481
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   482
The following options are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   483
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   484
.B {\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]} [{\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]}...]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   485
Displays information for methods identified by name, ID, or ID range.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   486
For a range of IDs, provide the starting ID and ending ID separated with
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   487
a hyphen.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   488
To provide a list, separate the items in the list with a space.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   489
Use the \f[CB]/list\f[R] command to see the IDs of code snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   490
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   491
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   492
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   493
.B \f[CB]\-all\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   494
Displays information for all methods, including those added when JShell
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   495
was started, and methods that failed, were overwritten, or were dropped.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   496
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   497
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   498
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   499
.B \f[CB]\-start\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   500
Displays information for startup methods that were added when JShell was
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   501
started.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   502
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   503
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   504
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   505
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   506
.B \f[CB]/open\f[R] \f[I]file\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   507
Opens the script specified and reads the snippets into the tool.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   508
The script can be a local file or one of the following predefined
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   509
scripts:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   510
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   511
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   512
.B \f[CB]DEFAULT\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   513
Loads the default entries, which are commonly used as imports.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   514
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   515
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   516
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   517
.B \f[CB]JAVASE\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   518
Imports all Java SE packages.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   519
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   520
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   521
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   522
.B \f[CB]PRINTING\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   523
Defines \f[CB]print\f[R], \f[CB]println\f[R], and \f[CB]printf\f[R] as
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   524
\f[CB]jshell\f[R] methods for use within the tool.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   525
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   526
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   527
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   528
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   529
.B \f[CB]/reload\f[R] [\f[I]options\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   530
Restarts the session as follows:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   531
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   532
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   533
Updates the environment settings with the provided options, if any.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   534
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   535
Resets the execution state.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   536
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   537
Runs the startup scripts.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   538
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   539
Replays the history in the order entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   540
The history includes all valid snippets or \f[CB]/drop\f[R] commands
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   541
entered at the \f[CB]jshell\f[R] prompt, in scripts entered on the command
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   542
line, or scripts entered with the \f[CB]/open\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   543
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   544
Environment settings entered on the command line or provided with a
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   545
previous \f[CB]/reset\f[R], \f[CB]/env\f[R], or \f[CB]/reload\f[R] command are
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   546
maintained unless an \f[I]option\f[R] is entered that overwrites the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   547
setting.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   548
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   549
The following options are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   550
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   551
.B \f[CB]\-\-add\-modules\f[R] \f[I]module\f[R][\f[CB],\f[R]\f[I]module\f[R]...]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   552
Specifies the root modules to resolve in addition to the initial module.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   553
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   554
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   555
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   556
.B \f[CB]\-\-add\-exports\f[R] \f[I]source\-module\f[R]\f[CB]/\f[R]\f[I]package\f[R]\f[CB]=\f[R]\f[I]target\-module\f[R][\f[CB],\f[R]\f[I]target\-module\f[R]]*
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   557
Adds an export of \f[I]package\f[R] from \f[I]source\-module\f[R] to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   558
\f[I]target\-module\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   559
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   560
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   561
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   562
.B \f[CB]\-\-class\-path\f[R] \f[I]path\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   563
Specifies the directories and archives that are searched to locate class
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   564
files.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   565
This option overrides the path in the \f[CB]CLASSPATH\f[R] environment
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   566
variable.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   567
If the environment variable isn\[aq]t set and this option isn\[aq]t
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   568
used, then the current directory is searched.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   569
For Oracle Solaris, Linux, and macOS, use a colon (\f[CB]:\f[R]) to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   570
separate items in the path.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   571
For Windows, use a semicolon (\f[CB];\f[R]) to separate items.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   572
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   573
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   574
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   575
.B \f[CB]\-\-module\-path\f[R] \f[I]modulepath\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   576
Specifies where to find application modules.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   577
For Oracle Solaris, Linux, and macOS, use a colon (\f[CB]:\f[R]) to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   578
separate items in the path.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   579
For Windows, use a semicolon (\f[CB];\f[R]) to separate items.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   580
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   581
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   582
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   583
.B \f[CB]\-quiet\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   584
Replays the valid history without displaying it.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   585
Errors are displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   586
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   587
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   588
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   589
.B \f[CB]\-restore\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   590
Resets the environment to the state at the start of the previous run of
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   591
the tool or to the last time a \f[CB]/reset\f[R], \f[CB]/reload\f[R], or
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   592
\f[CB]/env\f[R] command was executed in the previous run.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   593
The valid history since that point is replayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   594
Use this option to restore a previous JShell session.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   595
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   596
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   597
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   598
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   599
.B \f[CB]/reset\f[R] [\f[I]options\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   600
Discards all entered snippets and restarts the session as follows:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   601
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   602
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   603
Updates the environment settings with the provided options, if any.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   604
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   605
Resets the execution state.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   606
.IP \[bu] 2
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   607
Runs the startup scripts.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   608
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   609
History is not replayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   610
All code that was entered is lost.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   611
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   612
Environment settings entered on the command line or provided with a
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   613
previous \f[CB]/reset\f[R], \f[CB]/env\f[R], or \f[CB]/reload\f[R] command are
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   614
maintained unless an \f[I]option\f[R] is entered that overwrites the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   615
setting.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   616
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   617
The following options are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   618
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   619
.B \f[CB]\-\-add\-modules\f[R] \f[I]module\f[R][\f[CB],\f[R]\f[I]module\f[R]...]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   620
Specifies the root modules to resolve in addition to the initial module.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   621
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   622
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   623
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   624
.B \f[CB]\-\-add\-exports\f[R] \f[I]source\-module\f[R]\f[CB]/\f[R]\f[I]package\f[R]\f[CB]=\f[R]\f[I]target\-module\f[R][\f[CB],\f[R]\f[I]target\-module\f[R]]*
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   625
Adds an export of \f[I]package\f[R] from \f[I]source\-module\f[R] to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   626
\f[I]target\-module\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   627
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   628
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   629
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   630
.B \f[CB]\-\-class\-path\f[R] \f[I]path\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   631
Specifies the directories and archives that are searched to locate class
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   632
files.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   633
This option overrides the path in the \f[CB]CLASSPATH\f[R] environment
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   634
variable.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   635
If the environment variable isn\[aq]t set and this option isn\[aq]t
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   636
used, then the current directory is searched.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   637
For Oracle Solaris, Linux, and macOS, use a colon (\f[CB]:\f[R]) to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   638
separate items in the path.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   639
For Windows, use a semicolon (\f[CB];\f[R]) to separate items.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   640
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   641
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   642
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   643
.B \f[CB]\-\-module\-path\f[R] \f[I]modulepath\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   644
Specifies where to find application modules.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   645
For Oracle Solaris, Linux, and macOS, use a colon (\f[CB]:\f[R]) to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   646
separate items in the path.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   647
For Windows, use a semicolon (\f[CB];\f[R]) to separate items.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   648
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   649
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   650
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   651
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   652
.B \f[CB]/save\f[R] [\f[I]options\f[R]] \f[I]file\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   653
Saves snippets and commands to the file specified.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   654
If no options are entered, then active snippets are saved.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   655
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   656
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   657
The following options are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   658
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   659
.B {\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]} [{\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]}...]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   660
Saves the snippets and commands identified by name, ID, or ID range.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   661
For a range of IDs, provide the starting ID and ending ID separated with
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   662
a hyphen.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   663
To provide a list, separate the items in the list with a space.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   664
Use the \f[CB]/list\f[R] command to see the IDs of the code snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   665
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   666
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   667
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   668
.B \f[CB]\-all\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   669
Saves all snippets, including startup snippets and snippets that were
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   670
overwritten or failed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   671
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   672
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   673
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   674
.B \f[CB]\-history\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   675
Saves the sequential history of all commands and snippets entered in the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   676
current session.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   677
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   678
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   679
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   680
.B \f[CB]\-start\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   681
Saves the current startup settings.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   682
If no startup scripts were provided, then an empty file is saved.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   683
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   684
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   685
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   686
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   687
.B \f[CB]/set\f[R] [\f[I]setting\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   688
Sets configuration information, including the external editor, startup
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   689
settings, and feedback mode.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   690
This command is also used to create a custom feedback mode with
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   691
customized prompt, format, and truncation values.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   692
If no setting is entered, then the current setting for the editor,
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   693
startup settings, and feedback mode are displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   694
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   695
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   696
The following values are valid for \f[CB]setting\f[R]:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   697
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   698
.B \f[CB]editor\f[R] [\f[I]options\f[R]] [\f[I]command\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   699
Sets the command used to start an external editor when the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   700
\f[CB]/edit\f[R] command is entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   701
The command can include command arguments separated by spaces.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   702
If no command or options are entered, then the current setting is
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   703
displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   704
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   705
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   706
The following options are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   707
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   708
.B \f[CB]\-default\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   709
Sets the editor to the default editor provided with JShell.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   710
This option can\[aq]t be used if a command for starting an editor is
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   711
entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   712
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   713
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   714
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   715
.B \f[CB]\-delete\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   716
Sets the editor to the one in effect when the session started.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   717
If used with the \f[CB]\-retain\f[R] option, then the retained editor
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   718
setting is deleted and the editor is set to the first of the following
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   719
environment variables found: \f[CB]JSHELLEDITOR\f[R], \f[CB]VISUAL\f[R], or
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   720
\f[CB]EDITOR\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   721
If none of the editor environment variables are set, then this option
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   722
sets the editor to the default editor.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   723
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   724
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   725
This option can\[aq]t be used if a command for starting an editor is
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   726
entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   727
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   728
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   729
.B \f[CB]\-retain\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   730
Saves the editor setting across sessions.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   731
If no other option or a command is entered, then the current setting is
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   732
saved.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   733
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   734
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   735
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   736
.B \f[CB]\-wait\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   737
Prompts the user to indicate when editing is complete.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   738
Otherwise control returns to JShell when the editor exits.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   739
Use this option if the editor being used exits immediately, for example,
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   740
when an edit window already exists.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   741
This option is valid only when a command for starting an editor is
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   742
entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   743
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   744
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   745
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   746
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   747
.B \f[CB]feedback\f[R] [\f[I]mode\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   748
Sets the feedback mode used to respond to input.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   749
If no mode is entered, then the current mode is displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   750
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   751
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   752
The following modes are valid: \f[CB]concise\f[R], \f[CB]normal\f[R],
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   753
\f[CB]silent\f[R], \f[CB]verbose\f[R], and any custom mode created with the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   754
\f[CB]/set\ mode\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   755
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   756
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   757
.B \f[CB]format\f[R] \f[I]mode\f[R] \f[I]field\f[R] \f[CB]"\f[R]\f[I]format\-string\f[R]\f[CB]"\f[R] \f[I]selector\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   758
Sets the format of the feedback provided in response to input.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   759
If no mode is entered, then the current formats for all fields for all
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   760
feedback modes are displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   761
If only a mode is entered, then the current formats for that mode are
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   762
displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   763
If only a mode and field are entered, then the current formats for that
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   764
field are displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   765
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   766
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   767
To define a format, the following arguments are required:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   768
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   769
.B \f[I]mode\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   770
Specifies a feedback mode to which the response format is applied.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   771
Only custom modes created with the \f[CB]/set\ mode\f[R] command can be
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   772
modified.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   773
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   774
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   775
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   776
.B \f[I]field\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   777
Specifies a context\-specific field to which the response format is
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   778
applied.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   779
The fields are described in the online help, which is accessed from
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   780
JShell using the \f[CB]/help\ /set\ format\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   781
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   782
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   783
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   784
.B \f[CB]"\f[R]\f[I]format\-string\f[R]\f[CB]"\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   785
Specifies the string to use as the response format for the specified
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   786
field and selector.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   787
The structure of the format string is described in the online help,
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   788
which is accessed from JShell using the \f[CB]/help\ /set\ format\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   789
command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   790
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   791
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   792
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   793
.B \f[I]selector\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   794
Specifies the context in which the response format is applied.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   795
The selectors are described in the online help, which is accessed from
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   796
JShell using the \f[CB]/help\ /set\ format\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   797
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   798
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   799
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   800
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   801
.B \f[CB]mode\f[R] [\f[I]mode\-name\f[R]] [\f[I]existing\-mode\f[R]] [\f[I]options\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   802
Creates a custom feedback mode with the mode name provided.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   803
If no mode name is entered, then the settings for all modes are
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   804
displayed, which includes the mode, prompt, format, and truncation
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   805
settings.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   806
If the name of an existing mode is provided, then the settings from the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   807
existing mode are copied to the mode being created.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   808
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   809
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   810
The following options are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   811
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   812
.B \f[CB]\-command\f[R]|\f[CB]\-quiet\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   813
Specifies the level of feedback displayed for commands when using the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   814
mode.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   815
This option is required when creating a feedback mode.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   816
Use \f[CB]\-command\f[R] to show information and verification feedback for
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   817
commands.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   818
Use \f[CB]\-quiet\f[R] to show only essential feedback for commands, such
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   819
as error messages.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   820
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   821
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   822
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   823
.B \f[CB]\-delete\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   824
Deletes the named feedback mode for this session.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   825
The name of the mode to delete is required.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   826
To permanently delete a retained mode, use the \f[CB]\-retain\f[R] option
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   827
with this option.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   828
Predefined modes can\[aq]t be deleted.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   829
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   830
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   831
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   832
.B \f[CB]\-retain\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   833
Saves the named feedback mode across sessions.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   834
The name of the mode to retain is required.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   835
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   836
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   837
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   838
Configure the new feedback mode using the \f[CB]/set\ prompt\f[R],
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   839
\f[CB]/set\ format\f[R], and \f[CB]/set\ truncation\f[R] commands.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   840
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   841
To start using the new mode, use the \f[CB]/set\ feedback\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   842
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   843
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   844
.B \f[CB]prompt\f[R] \f[I]mode\f[R] \f[CB]"\f[R]\f[I]prompt\-string\f[R]\f[CB]"\f[R] \f[CB]"\f[R]\f[I]continuation\-prompt\-string\f[R]\f[CB]"\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   845
Sets the prompts for input within JShell.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   846
If no mode is entered, then the current prompts for all feedback modes
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   847
are displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   848
If only a mode is entered, then the current prompts for that mode are
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   849
displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   850
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   851
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   852
To define a prompt, the following arguments are required:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   853
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   854
.B \f[I]mode\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   855
Specifies the feedback mode to which the prompts are applied.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   856
Only custom modes created with the \f[CB]/set\ mode\f[R] command can be
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   857
modified.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   858
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   859
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   860
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   861
.B \f[CB]"\f[R]\f[I]prompt\-string\f[R]\f[CB]"\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   862
Specifies the string to use as the prompt for the first line of input.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   863
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   864
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   865
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   866
.B \f[CB]"\f[R]\f[I]continuation\-prompt\-string\f[R]\f[CB]"\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   867
Specifies the string to use as the prompt for the additional input lines
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   868
needed to complete a snippet.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   869
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   870
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   871
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   872
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   873
.B \f[CB]start\f[R] [\f[CB]\-retain\f[R]] [\f[I]file\f[R] [\f[I]file\f[R]...]|\f[I]option\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   874
Sets the names of the startup scripts used when the next
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   875
\f[CB]/reset\f[R], \f[CB]/reload\f[R], or \f[CB]/env\f[R] command is entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   876
If more than one script is entered, then the scripts are run in the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   877
order entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   878
If no scripts or options are entered, then the current startup settings
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   879
are displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   880
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   881
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   882
The scripts can be local files or one of the following predefined
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   883
scripts:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   884
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   885
.B \f[CB]DEFAULT\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   886
Loads the default entries, which are commonly used as imports.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   887
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   888
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   889
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   890
.B \f[CB]JAVASE\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   891
Imports all Java SE packages.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   892
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   893
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   894
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   895
.B \f[CB]PRINTING\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   896
Defines \f[CB]print\f[R], \f[CB]println\f[R], and \f[CB]printf\f[R] as
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   897
\f[CB]jshell\f[R] methods for use within the tool.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   898
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   899
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   900
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   901
The following options are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   902
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   903
.B \f[CB]\-default\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   904
Sets the startup settings to the default settings.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   905
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   906
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   907
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   908
.B \f[CB]\-none\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   909
Specifies that no startup settings are used.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   910
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   911
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   912
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   913
Use the \f[CB]\-retain\f[R] option to save the start setting across
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   914
sessions.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   915
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   916
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   917
.B \f[CB]truncation\f[R] \f[I]mode\f[R] \f[I]length\f[R] \f[I]selector\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   918
Sets the maximum length of a displayed value.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   919
If no mode is entered, then the current truncation values for all
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   920
feedback modes are displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   921
If only a mode is entered, then the current truncation values for that
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   922
mode are displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   923
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   924
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   925
To define truncation values, the following arguments are required:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   926
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   927
.B \f[I]mode\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   928
Specifies the feedback mode to which the truncation value is applied.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   929
Only custom modes created with the \f[CB]/set\ mode\f[R] command can be
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   930
modified.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   931
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   932
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   933
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   934
.B \f[I]length\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   935
Specifies the unsigned integer to use as the maximum length for the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   936
specified selector.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   937
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   938
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   939
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   940
.B \f[I]selector\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   941
Specifies the context in which the truncation value is applied.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   942
The selectors are described in the online help, which is accessed from
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   943
JShell using the \f[CB]/help\ /set\ truncation\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   944
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   945
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   946
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   947
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   948
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   949
.B \f[CB]/types\f[R] [\f[I]option\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   950
Displays classes, interfaces, and enums that were entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   951
If no option is entered, then all current active classes, interfaces,
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   952
and enums are displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   953
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   954
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   955
The following options are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   956
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   957
.B {\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]} [{\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]}...]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   958
Displays information for classes, interfaces, and enums identified by
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   959
name, ID, or ID range.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   960
For a range of IDs, provide the starting ID and ending ID separated with
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   961
a hyphen.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   962
To provide a list, separate the items in the list with a space.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   963
Use the \f[CB]/list\f[R] command to see the IDs of the code snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   964
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   965
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   966
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   967
.B \f[CB]\-all\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   968
Displays information for all classes, interfaces, and enums, including
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   969
those added when JShell was started, and classes, interfaces, and enums
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   970
that failed, were overwritten, or were dropped.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   971
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   972
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   973
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   974
.B \f[CB]\-start\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   975
Displays information for startup classes, interfaces, and enums that
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   976
were added when JShell was started.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   977
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   978
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   979
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   980
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   981
.B \f[CB]/vars\f[R] [\f[I]option\f[R]]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   982
Displays the name, type, and value of variables that were entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   983
If no option is entered, then all current active variables are
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   984
displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   985
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   986
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   987
The following options are valid:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   988
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   989
.B {\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]} [{\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]}...]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   990
Displays information for variables identified by name, ID, or ID range.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   991
For a range of IDs, provide the starting ID and ending ID separated with
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   992
a hyphen.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   993
To provide a list, separate the items in the list with a space.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   994
Use the \f[CB]/list\f[R] command to see the IDs of the code snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   995
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   996
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   997
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   998
.B \f[CB]\-all\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
   999
Displays information for all variables, including those added when
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1000
JShell was started, and variables that failed, were overwritten, or were
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1001
dropped.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1002
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1003
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1004
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1005
.B \f[CB]\-start\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1006
Displays information for startup variables that were added when JShell
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1007
was started.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1008
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1009
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1010
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1011
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1012
.B \f[CB]/?\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1013
Same as the \f[CB]/help\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1014
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1015
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1016
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1017
.B \f[CB]/!\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1018
Reruns the last snippet.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1019
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1020
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1021
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1022
.B \f[CB]/\f[R]{\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]} [{\f[I]name\f[R]|\f[I]id\f[R]|\f[I]startID\f[R]\f[CB]\-\f[R]\f[I]endID\f[R]}...]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1023
Reruns the snippets identified by ID, range of IDs, or name.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1024
For a range of IDs, provide the starting ID and ending ID separated with
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1025
a hyphen.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1026
To provide a list, separate the items in the list with a space.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1027
The first item in the list must be an ID or ID range.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1028
Use the \f[CB]/list\f[R] command to see the IDs of the code snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1029
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1030
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1031
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1032
.B \f[CB]/\-\f[R]\f[I]n\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1033
Reruns the \-\f[I]n\f[R]th previous snippet.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1034
For example, if 15 code snippets were entered, then \f[CB]/\-4\f[R] runs
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1035
the 11th snippet.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1036
Commands aren\[aq]t included in the count.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1037
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1038
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1039
.SH INPUT SHORTCUTS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1040
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1041
The following shortcuts are available for entering commands and snippets
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1042
in JShell.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1043
.SS Tab completion
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1044
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1045
.B \f[B]<tab>\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1046
When entering snippets, commands, subcommands, command arguments, or
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1047
command options, use the Tab key to automatically complete the item.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1048
If the item can\[aq]t be determined from what was entered, then possible
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1049
options are provided.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1050
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1051
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1052
When entering a method call, use the Tab key after the method call\[aq]s
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1053
opening parenthesis to see the parameters for the method.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1054
If the method has more than one signature, then all signatures are
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1055
displayed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1056
Pressing the Tab key a second time displays the description of the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1057
method and the parameters for the first signature.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1058
Continue pressing the Tab key for a description of any additional
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1059
signatures.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1060
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1061
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1062
.B \f[B]Shift+<Tab> V\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1063
After entering a complete expression, use this key sequence to convert
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1064
the expression to a variable declaration of a type determined by the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1065
type of the expression.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1066
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1067
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1068
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1069
.B \f[B]Shift+<Tab> M\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1070
After entering a complete expression or statement, use this key sequence
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1071
to convert the expression or statement to a method declaration.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1072
If an expression is entered, the return type is based on the type of the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1073
expression.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1074
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1075
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1076
.TP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1077
.B \f[B]Shift+<Tab> I\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1078
When an identifier is entered that can\[aq]t be resolved, use this key
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1079
sequence to show possible imports that resolve the identifier based on
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1080
the content of the specified class path.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1081
.RS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1082
.RE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1083
.SS Command abbreviations
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1084
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1085
An abbreviation of a command is accepted if the abbreviation uniquely
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1086
identifies a command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1087
For example, \f[CB]/l\f[R] is recognized as the \f[CB]/list\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1088
However, \f[CB]/s\f[R] isn\[aq]t a valid abbreviation because it can\[aq]t
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1089
be determined if the \f[CB]/set\f[R] or \f[CB]/save\f[R] command is meant.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1090
Use \f[CB]/se\f[R] for the \f[CB]/set\f[R] command or \f[CB]/sa\f[R] for the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1091
\f[CB]/save\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1092
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1093
Abbreviations are also accepted for subcommands, command arguments, and
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1094
command options.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1095
For example, use \f[CB]/m\ \-a\f[R] to display all methods.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1096
.SS History navigation
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1097
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1098
A history of what was entered is maintained across sessions.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1099
Use the up and down arrows to scroll through commands and snippets from
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1100
the current and past sessions.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1101
Use the Ctrl key with the up and down arrows to skip all but the first
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1102
line of multiline snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1103
.SS History search
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1104
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1105
Use the Ctrl+R key combination to search the history for the string
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1106
entered.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1107
The prompt changes to show the string and the match.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1108
Ctrl+R searches backwards from the current location in the history
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1109
through earlier entries.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1110
Ctrl+S searches forward from the current location in the history though
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1111
later entries.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1112
.SH INPUT EDITING
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1113
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1114
The editing capabilities of JShell are similar to that of other common
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1115
shells.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1116
Keyboard keys and key combinations provide line editing shortcuts.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1117
The Ctrl key and Meta key are used in key combinations.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1118
If your keyboard doesn\[aq]t have a Meta key, then the Alt key is often
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1119
mapped to provide Meta key functionality.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1120
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1121
.TS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1122
tab(@);
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1123
l l.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1124
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1125
Key or Key Combination
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1126
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1127
Action
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1128
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1129
_
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1130
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1131
Return
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1132
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1133
Enter the current line.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1134
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1135
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1136
Left arrow
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1137
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1138
Move the cursor to the left one character.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1139
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1140
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1141
Right arrow
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1142
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1143
Move the cursor to the right one character.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1144
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1145
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1146
Ctrl+A
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1147
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1148
Move the cursor to the beginning of the line.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1149
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1150
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1151
Ctrl+E
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1152
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1153
Move the cursor to the end of the line.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1154
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1155
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1156
Meta+B
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1157
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1158
Move the cursor to the left one word.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1159
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1160
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1161
Meta+F
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1162
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1163
Move the cursor to the right one word.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1164
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1165
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1166
Delete
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1167
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1168
Delete the character under the cursor.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1169
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1170
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1171
Backspace
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1172
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1173
Delete the character before the cursor.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1174
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1175
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1176
Ctrl+K
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1177
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1178
Delete the text from the cursor to the end of the line.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1179
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1180
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1181
Meta+D
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1182
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1183
Delete the text from the cursor to the end of the word.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1184
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1185
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1186
Ctrl+W
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1187
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1188
Delete the text from the cursor to the previous white space.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1189
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1190
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1191
Ctrl+Y
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1192
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1193
Paste the most recently deleted text into the line.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1194
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1195
T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1196
Meta+Y
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1197
T}@T{
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1198
After Ctrl+Y, press to cycle through the previously deleted text.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1199
T}
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1200
.TE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1201
.SH EXAMPLE OF STARTING AND STOPPING A JSHELL SESSION
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1202
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1203
JShell is provided with the JDK.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1204
To start a session, enter \f[CB]jshell\f[R] on the command line.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1205
A welcome message is printed, and a prompt for entering commands and
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1206
snippets is provided.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1207
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1208
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1209
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1210
%\ jshell
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1211
|\ \ Welcome\ to\ JShell\ \-\-\ Version\ 9
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1212
|\ \ For\ an\ introduction\ type:\ /help\ intro
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1213
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1214
jshell>
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1215
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1216
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1217
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1218
To see which snippets were automatically loaded when JShell started, use
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1219
the \f[CB]/list\ \-start\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1220
The default startup snippets are import statements for common packages.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1221
The ID for each snippet begins with the letter \f[I]s\f[R], which
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1222
indicates it\[aq]s a startup snippet.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1223
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1224
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1225
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1226
jshell>\ /list\ \-start
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1227
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1228
\ \ s1\ :\ import\ java.io.*;
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1229
\ \ s2\ :\ import\ java.math.*;
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1230
\ \ s3\ :\ import\ java.net.*;
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1231
\ \ s4\ :\ import\ java.nio.file.*;
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1232
\ \ s5\ :\ import\ java.util.*;
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1233
\ \ s6\ :\ import\ java.util.concurrent.*;
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1234
\ \ s7\ :\ import\ java.util.function.*;
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1235
\ \ s8\ :\ import\ java.util.prefs.*;
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1236
\ \ s9\ :\ import\ java.util.regex.*;
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1237
\ s10\ :\ import\ java.util.stream.*;
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1238
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1239
jshell>
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1240
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1241
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1242
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1243
To end the session, use the \f[CB]/exit\f[R] command.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1244
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1245
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1246
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1247
jshell>\ /exit
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1248
|\ \ Goodbye
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1249
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1250
%
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1251
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1252
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1253
.SH EXAMPLE OF ENTERING SNIPPETS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1254
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1255
Snippets are Java statements, variable definitions, method definitions,
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1256
class definitions, import statements, and expressions.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1257
Terminating semicolons are automatically added to the end of a completed
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1258
snippet if they\[aq]re missing.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1259
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1260
The following example shows two variables and a method being defined,
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1261
and the method being run.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1262
Note that a scratch variable is automatically created to hold the result
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1263
because no variable was provided.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1264
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1265
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1266
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1267
jshell>\ int\ a=4
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1268
a\ ==>\ 4
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1269
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1270
jshell>\ int\ b=8
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1271
b\ ==>\ 8
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1272
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1273
jshell>\ int\ square(int\ i1)\ {
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1274
\ \ \ ...>\ return\ i1\ *\ i1;
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1275
\ \ \ ...>\ }
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1276
|\ \ created\ method\ square(int)
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1277
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1278
jshell>\ square(b)
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1279
$5\ ==>\ 64
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1280
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1281
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1282
.SH EXAMPLE OF CHANGING SNIPPETS
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1283
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1284
Change the definition of a variable, method, or class by entering it
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1285
again.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1286
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1287
The following examples shows a method being defined and the method run:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1288
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1289
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1290
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1291
jshell>\ String\ grade(int\ testScore)\ {
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1292
\ \ \ ...>\ \ \ \ \ if\ (testScore\ >=\ 90)\ {
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1293
\ \ \ ...>\ \ \ \ \ \ \ \ \ return\ "Pass";
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1294
\ \ \ ...>\ \ \ \ \ }
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1295
\ \ \ ...>\ \ \ \ \ return\ "Fail";
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1296
\ \ \ ...>\ }
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1297
|\ \ created\ method\ grade(int)
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1298
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1299
jshell>\ grade(88)
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1300
$3\ ==>\ "Fail"
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1301
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1302
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1303
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1304
To change the method \f[CB]grade\f[R] to allow more students to pass,
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1305
enter the method definition again and change the pass score to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1306
\f[CB]80\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1307
Use the up arrow key to retrieve the previous entries to avoid having to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1308
reenter them and make the change in the \f[CB]if\f[R] statement.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1309
The following example shows the new definition and reruns the method to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1310
show the new result:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1311
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1312
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1313
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1314
jshell>\ String\ grade(int\ testScore)\ {
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1315
\ \ \ ...>\ \ \ \ \ if\ (testScore\ >=\ 80)\ {
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1316
\ \ \ ...>\ \ \ \ \ \ \ \ \ return\ "Pass";
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1317
\ \ \ ...>\ \ \ \ \ }
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1318
\ \ \ ...>\ \ \ \ \ return\ "Fail";
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1319
\ \ \ ...>\ }
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1320
|\ \ modified\ method\ grade(int)
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1321
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1322
jshell>\ grade(88)
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1323
$5\ ==>\ "Pass"
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1324
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1325
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1326
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1327
For snippets that are more than a few lines long, or to make more than a
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1328
few changes, use the \f[CB]/edit\f[R] command to open the snippet in an
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1329
editor.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1330
After the changes are complete, close the edit window to return control
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1331
to the JShell session.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1332
The following example shows the command and the feedback provided when
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1333
the edit window is closed.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1334
The \f[CB]/list\f[R] command is used to show that the pass score was
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1335
changed to \f[CB]85\f[R].
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1336
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1337
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1338
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1339
jshell>\ /edit\ grade
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1340
|\ \ modified\ method\ grade(int)
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1341
jshell>\ /list\ grade
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1342
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1343
\ \ \ 6\ :\ String\ grade(int\ testScore)\ {
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1344
\ \ \ \ \ \ \ \ \ \ \ if\ (testScore\ >=\ 85)\ {
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1345
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ return\ "Pass";
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1346
\ \ \ \ \ \ \ \ \ \ \ }
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1347
\ \ \ \ \ \ \ \ \ \ \ return\ "Fail";
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1348
\ \ \ \ \ \ \ }
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1349
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1350
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1351
.SH EXAMPLE OF CREATING A CUSTOM FEEDBACK MODE
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1352
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1353
The feedback mode determines the prompt that\[aq]s displayed, the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1354
feedback messages that are provided as snippets are entered, and the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1355
maximum length of a displayed value.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1356
Predefined feedback modes are provided.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1357
Commands for creating custom feedback modes are also provided.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1358
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1359
Use the \f[CB]/set\ mode\f[R] command to create a new feedback mode.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1360
In the following example, the new mode \f[CB]mymode\f[R], is based on the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1361
predefined feedback mode, \f[CB]normal\f[R], and verifying command
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1362
feedback is displayed:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1363
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1364
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1365
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1366
jshell>\ /set\ mode\ mymode\ normal\ \-command
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1367
|\ \ Created\ new\ feedback\ mode:\ mymode
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1368
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1369
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1370
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1371
Because the new mode is based on the \f[CB]normal\f[R] mode, the prompts
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1372
are the same.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1373
The following example shows how to see what prompts are used and then
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1374
changes the prompts to custom strings.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1375
The first string represents the standard JShell prompt.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1376
The second string represents the prompt for additional lines in
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1377
multiline snippets.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1378
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1379
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1380
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1381
jshell>\ /set\ prompt\ mymode
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1382
|\ \ /set\ prompt\ mymode\ "\\njshell>\ "\ "\ \ \ ...>\ "
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1383
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1384
jshell>\ /set\ prompt\ mymode\ "\\nprompt$\ "\ "\ \ \ continue$\ "
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1385
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1386
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1387
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1388
The maximum length of a displayed value is controlled by the truncation
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1389
setting.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1390
Different types of values can have different lengths.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1391
The following example sets an overall truncation value of 72, and a
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1392
truncation value of 500 for variable value expressions:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1393
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1394
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1395
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1396
jshell>\ /set\ truncation\ mymode\ 72
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1397
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1398
jshell>\ /set\ truncation\ mymode\ 500\ varvalue
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1399
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1400
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1401
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1402
The feedback displayed after snippets are entered is controlled by the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1403
format setting and is based on the type of snippet entered and the
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1404
action taken for that snippet.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1405
In the predefined mode \f[CB]normal\f[R], the string \f[CB]created\f[R] is
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1406
displayed when a method is created.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1407
The following example shows how to change that string to
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1408
\f[CB]defined\f[R]:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1409
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1410
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1411
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1412
jshell>\ /set\ format\ mymode\ action\ "defined"\ added\-primary
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1413
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1414
.fi
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1415
.PP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1416
Use the \f[CB]/set\ feedback\f[R] command to start using the feedback mode
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1417
that was just created.
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1418
The following example shows the custom mode in use:
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1419
.IP
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1420
.nf
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1421
\f[CB]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1422
jshell>\ /set\ feedback\ mymode
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1423
|\ \ Feedback\ mode:\ mymode
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1424
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1425
prompt$\ int\ square\ (int\ num1){
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1426
\ \ \ continue$\ return\ num1*num1;
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1427
\ \ \ continue$\ }
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1428
|\ \ defined\ method\ square(int)
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1429
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1430
prompt$
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1431
\f[R]
d4890c3721be 8225134: Update man-page files
jjg
parents:
diff changeset
  1432
.fi