github.com/tmc/bubbweb
Package bubbweb provides a WebAssembly interface for BubbleTea applications. BubblTea is a Go framework for building terminal user interfaces. With bubbweb, these terminal UIs can be compiled to WebAssembly and run in a browser using a terminal emulator like xterm.js. Basic usage: When compiled to WebAssembly, the program provides JavaScript bindings that connect to an xterm.js terminal in the browser. The included example demonstrates the complete setup, including HTML and JavaScript. The bubbweb package handles input and output between the BubbleTea application and the browser. It exposes four JavaScript functions: Mouse support is enabled by default and works with standard BubbleTea mouse handling. Your application will receive mouse events through the tea.MouseMsg type: These JavaScript functions are called by the JavaScript code in the HTML page. To build a WebAssembly application using bubbweb: See the example directory for a complete implementation.
proxy.golang.org
0
Past Dependents
Check this option to include packages that no longer depend on this package in their latest version but previously did.
Filter
Filter by Kind
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/tmc/bubbweb
spec |
| License | MIT |
| Namespace | github.com/tmc |
| Last Synced | 27 days ago |