#tauri-plugin #pty

sys tauri-plugin-pty

Pseudo Terminal (PTY) plugin for Tauri

10 releases

0.2.1 Jan 18, 2026
0.2.0 Jan 4, 2026
0.1.1 Aug 22, 2025
0.1.0 Mar 10, 2025
0.0.8 Dec 24, 2023

#393 in GUI

Download history 53/week @ 2025-11-18 70/week @ 2025-11-25 139/week @ 2025-12-02 102/week @ 2025-12-09 78/week @ 2025-12-16 54/week @ 2025-12-23 61/week @ 2025-12-30 154/week @ 2026-01-06 200/week @ 2026-01-13 333/week @ 2026-01-20 293/week @ 2026-01-27 594/week @ 2026-02-03 599/week @ 2026-02-10 518/week @ 2026-02-17 904/week @ 2026-02-24 362/week @ 2026-03-03

2,481 downloads per month

MIT license

57KB
603 lines

Tauri Plugin Pseudo Terminal

Developing! Wellcome to contribute!

Example

Full example at: https://github.com/Tnze/tauri-plugin-pty/tree/main/examples/vanilla

# Install this plugin in your Cargo.toml
cargo add tauri-plugin-pty
# Install the api package
npm install tauri-pty
tauri::Builder::default()
    .plugin(tauri_plugin_pty::init()) // add this
    .run(tauri::generate_context!())
    .expect("error while running tauri application");
...
import { Terminal } from "xterm"
import { spawn } from "tauri-pty";

// init xterm.js
const term = new Terminal();
term.open(/* DOM Elem */);
// spawn shell
const pty = spawn("powershell.exe", [/* args */], {
    cols: term.cols,
    rows: term.rows,
})
// transport data
pty.onData(data => term.write(data))
term.onData(data => pty.write(data))

Dependencies

~18–64MB
~1M SLoC