New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running on browsers ? (webassembly?) #956
Comments
Could be a nice project for you, don't you think? |
@linkerlin @rivo tview is not what needs to support it since it is just a UI framework. The gdamore/tcell supports WASM, and since it is what tview uses to render/interact with the vt/tty/pty, you just need to implement a more controlled handling of how tview uses the A However, AFAIK the current WASM support for gdamore/tcell simply draws to a CANVAS, and I do not know how it handles resizing/paste/mouse interactions. You can read more in their issues about this. However, because I wanted to be able to support It is in nowhere near anything production/polished, but it works well already. I wouldn't mind posting it's current state, but I do not have the time to finish/assist beyond just pushing the source (it's not doc'd well). However to anyone capable it is a starting point that just needs optimization, and better organization/docs. It requires an xterm.js addon in JS and changes to tcell that do not affect existing operations. I don't mind releasing what I have if someone wants to take it over or use it as a basis/insight to build/learn from. However if I do, it would be privately released and collaborators added. I am embarassed at how badly messed up the code is, since I whipped this up as quick as possible to meet a deadline after realizing that xterm.js didnt support what I wanted to do and had to make it work whether or not anyone else could read the code. Also the fact that I have the worst/vulgar/stupid test strings/var names/comment handling, doesn't help as you will see below. 291585755-781d588b-e439-4e21-bc11-359335d1a134.mp4 |
It would be really cool if the tview project could run in a browser just like gio!
The text was updated successfully, but these errors were encountered: