File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1141,8 +1141,8 @@ <h3 id="docs.4.2.1">4.2.1. Handling Terminal Initialization</h3>
1141
1141
< h3 id ="docs.4.2.2 "> 4.2.2. Executing Commands</ h3 >
1142
1142
< p >
1143
1143
To execute a line of Caché ObjectScript code in runtime, use
1144
- < code class ="inline "> term.execute(command, options)</ code > function. It accepts
1145
- two arguments:
1144
+ < code class ="inline "> term.execute(command, [ options], [callback] )</ code >
1145
+ function. It accepts three arguments:
1146
1146
</ p >
1147
1147
< ul >
1148
1148
< li >
@@ -1161,6 +1161,11 @@ <h3 id="docs.4.2.2">4.2.2. Executing Commands</h3>
1161
1161
user will be prompted to enter a command after execution
1162
1162
(< code class ="inline "> NAMESPACE > </ code > will be printed as well).
1163
1163
</ li >
1164
+ < li >
1165
+ If < code class ="inline "> callback</ code > is passed, the output buffer will
1166
+ come as a first argument of the < code class ="inline "> callback</ code >
1167
+ function in a form of an array of strings.
1168
+ </ li >
1164
1169
</ ul >
1165
1170
< p >
1166
1171
Example of executing the line of COS code at the startup:
You can’t perform that action at this time.
0 commit comments