-
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce9f585
commit 29ae5fc
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
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 | ||
|
||
|
||
``` | ||
|
||
- `on_keyup()` | ||
- `on_keydown()` | ||
- `on_render()` | ||
- `request_render()` | ||
- `append_element()` |