Skip to content

aschey/ratatui-xterm-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ratatui-xterm-js

This is a demo/POC of a ratatui backend based on crossterm that can run on both web and native environments with minimal implementation differences. It requires a fork of crossterm that has certain features disabled or stubbed out when building for wasm. I hope to get these changes merged upstream.

On the web, it runs on xtermjs using xterm-js-rs. We can't spawn threads in the browser so we make use of crossterm's async input streams when running natively and wasm-bindgen-futures on the web.

To run the demos (requires wasm-pack):

cd ./examples/simple
npm install
cd www
npm install
wasm-pack build --all-features
# run wasm build
npm run start
# or run native build
cargo run
cd ./examples/inline
npm install
cd www
npm install
wasm-pack build --all-features
# run wasm build
npm run start
# or run native build
cargo run

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages