You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TerminalApi.setCommand('my-terminal', "customCmd -a hello")
448
+
```
449
+
430
450
## Message
431
451
432
452
This plugin defines a message object. Any information that needs to be displayed on the Terminal in the form of a record is a message object. It is used by the `success()` callback of the `exec-cmd` event and the `pushMessage` api.
@@ -729,8 +749,8 @@ If you set `enable-default-command` to false, these commands will not work;
729
749
730
750
### Drag
731
751
732
-
To enable drag and drop, you need to set `show-header` to true and configure `drag-conf`.
733
-
You can configure the window size through `width` and `height` of dragConf,
752
+
To enable drag and drop, you need to set `show-header` to true and configure `drag-conf`.
753
+
You can configure the window size through `width` and `height` of dragConf,
734
754
and you can control the window initialization position through `init`, the following is a simple example.
735
755
736
756
```vue
@@ -838,7 +858,7 @@ asker.ask({
838
858
839
859
#### Use API
840
860
841
-
When you want to edit multi-line text, you can use the API: `textEditorOpen()`, `textEditorClose()`.
861
+
When you want to edit multi-line text, you can use the API: `textEditorOpen()`, `textEditorClose()`.
842
862
For details, please refer to the [API](#API) section. The following is a simple example:
843
863
844
864
```js
@@ -861,8 +881,8 @@ the parameter is `data`, and data has three attributes that you need to care abo
861
881
862
882
**Custom Shortcuts**
863
883
864
-
The plugin provides an `onKeydown` event, which is the best way for you to control the shortcut keys of the Terminal
865
-
in **active state**, here we take the text editor as an example, set the user to press the shortcut key `Ctrl + S`
884
+
The plugin provides an `onKeydown` event, which is the best way for you to control the shortcut keys of the Terminal
885
+
in **active state**, here we take the text editor as an example, set the user to press the shortcut key `Ctrl + S`
0 commit comments