Skip to content

Commit 85f680e

Browse files
Description edit
1 parent beda5a1 commit 85f680e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,8 +1141,8 @@ <h3 id="docs.4.2.1">4.2.1. Handling Terminal Initialization</h3>
11411141
<h3 id="docs.4.2.2">4.2.2. Executing Commands</h3>
11421142
<p>
11431143
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:
11461146
</p>
11471147
<ul>
11481148
<li>
@@ -1161,6 +1161,11 @@ <h3 id="docs.4.2.2">4.2.2. Executing Commands</h3>
11611161
user will be prompted to enter a command after execution
11621162
(<code class="inline">NAMESPACE > </code> will be printed as well).
11631163
</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>
11641169
</ul>
11651170
<p>
11661171
Example of executing the line of COS code at the startup:

0 commit comments

Comments
 (0)