Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/docs/plugins.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: 'Plugins'
language: 'en'
---

Rio can support any plugin written in WASM or Lua directly.

Plugins works in Rio based on events. Let's say you would like to create an [ChatGPT](https://openai.com/index/chatgpt/) or any AI plugin that would integrate with Rio terminal.

In the plugin you can specify how it would work, let's write one in Rust:

```rs


```

- `onmousemove()`
- `onmouseclick()`
- `onmouserelease()`
- `onkeyup()`
- `onkeydown()`
- `onrender()`
- `requestrender()`
- `appendelement()`