Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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
# run wasm build
npm run start
# or run native build
cargo run
cd ./examples/inline
npm install
cd www
npm install
# run wasm build
npm run start
# or run native build
cargo run

About

No description, website, or topics provided.

Resources

Stars

25 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages