Skip to content

Commit

Permalink
(docs) add events guide placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Dec 21, 2024
1 parent 0db9880 commit 09508db
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 15 deletions.
4 changes: 2 additions & 2 deletions docs/docs/deep-dive/animation.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 6
sidebar_position: 7
---

# Animation
# Animation
4 changes: 2 additions & 2 deletions docs/docs/deep-dive/authentication.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 7
sidebar_position: 8
---

# Authentication
# Authentication
10 changes: 8 additions & 2 deletions docs/docs/deep-dive/automation.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
sidebar_position: 4
sidebar_position: 5
---

# Automation
# Automation

## Executing Commands

## Echo Command Without Execution

## Invoking Shortcuts
4 changes: 2 additions & 2 deletions docs/docs/deep-dive/cmd.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 8
sidebar_position: 9
---

# Cmd
# Cmd
5 changes: 5 additions & 0 deletions docs/docs/deep-dive/events.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
sidebar_position: 3
---

# Events
2 changes: 1 addition & 1 deletion docs/docs/deep-dive/formatters.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 3
sidebar_position: 4
---

# Formatters and Syntax Highlighting
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/deep-dive/history-and-state.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 5
sidebar_position: 6
---

# History and State
# History and State
4 changes: 2 additions & 2 deletions docs/docs/deep-dive/other-extensions.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 9
sidebar_position: 10
---

# Other Extensions
# Other Extensions
17 changes: 15 additions & 2 deletions docs/docs/deep-dive/terminal.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
sidebar_position: 1
---

import CodePen from '@site/src/CodePen';

# Terminal Instance

Terminal instance is the main API that allow you to interact with the jQuery Terminal library. To
Expand Down Expand Up @@ -36,11 +38,22 @@ the second are options. More about echo method in [What you can echo?](/docs/dee

### Inserting Text Into the Command

To insert text into the command you can use
To insert text into the command you can use `term.insert('text');`. You need to call this method outside of interpreter.
You can do this outside of terminal, or inside an event, see [Terminal Events](#???).

This function insert the text at current cursor position. You can change the position and then insert.

```javascript
term.set_command('heworld');
term.set_position(2);
term.insert('llo ');
```

<CodePen id="dPbWKZm" title="insert + position" />

### Changing the Command

To change the command you can use
Besides inserting text and current cursor position.

### Getting The Command

Expand Down

0 comments on commit 09508db

Please sign in to comment.