SCRIPTING
Lua event hooks, custom commands, and WGSL post-processing shaders.
Lua Scripting
ori-term embeds a Lua scripting engine that lets you extend the terminal with your own logic. Hook into events, define custom commands, and automate workflows without modifying ori-term itself.
Event Hooks
Hook into terminal events to run custom logic whenever something happens -- a tab opens, a command finishes, focus changes, or any other lifecycle event.
oriterm.on-- register a callback for any terminal event
Custom Commands
Define your own commands that are accessible from the command palette. Add project-specific shortcuts, workflow automations, or anything else you need.
Full API
The scripting API exposes core terminal operations:
oriterm.on-- subscribe to terminal eventsoriterm.new_tab-- open a new tab programmaticallyoriterm.send_text-- send text to the active pane- And more -- the API surface covers tabs, panes, configuration, and event handling
Custom Shaders
ori-term supports WGSL post-processing shaders applied as a full-screen pass on the GPU. Write your own visual effects or use built-in presets.
- CRT scanlines -- simulate a CRT monitor with scanline overlay
- Bloom -- add a glow effect to bright text and UI elements
- Custom effects -- write any WGSL shader and apply it as a post-processing pass
Shaders run entirely on the GPU with zero impact on terminal throughput. The post-processing pipeline composites your effect over the final rendered frame.