Commit b82b357 1 parent 7fdf38f commit b82b357 Copy full SHA for b82b357
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ Read more about [terminal instance](/docs/deep-dive/terminal) and [echo](/docs/d
136
136
To create arguments to the commands you add them as function paramters:
137
137
138
138
``` javascript
139
- $ (' body' ).terminal ({
139
+ const term = $ (' body' ).terminal ({
140
140
hello (what ) {
141
141
this .echo (` hello, this is ${ what} !` );
142
142
},
@@ -146,7 +146,15 @@ $('body').terminal({
146
146
});
147
147
```
148
148
149
- If you type ` hello Terminal ` it will print "hello, this is Terminal"
149
+ If you type ` hello Terminal ` it will print "hello, this is Terminal".
150
+
151
+ :::info
152
+
153
+ Note that ` terminal ` returns Terminal object with methods that allow you to interact with the
154
+ terminal. It's the same object you can access with ` this ` . Terminal object is in fact jQuery object
155
+ extended with additional methods.
156
+
157
+ :::
150
158
151
159
## Terminal Options
152
160
You can’t perform that action at this time.
0 commit comments