chase / awrit

A full graphical web browser for Kitty terminal with mouse and keyboard support
Other
431 stars 14 forks source link

Rewrite with Electron/Typescript #41

Open chase opened 5 months ago

chase commented 5 months ago

Why?

Problems?

This shouldn't be too difficult, but it does mean that there will be some performance regressions in frequently called, low-latency code that will require some native addons or extensions using WASM. First thing that comes to mind is converting the NativeImage of the painted area to the right format before blitting to Kitty.

chase commented 2 months ago

@GustavoJCL if you're still interested in contributing to the rewrite, I've started a fresh branch electron: https://github.com/chase/awrit/tree/electron

Mouse input needs to be fixed, so if you want to debug and tackle that, I'd appreciate it!

So far, the only thing implemented so far is the input test, which can be run with: npm run input-test (after installing the project with npm install of course)

GustavoJCL commented 2 months ago

yes of course, I will try to fix it

chase commented 2 months ago

@GustavoJCL The code missing the DEC MODE character, adding that fixed it! https://github.com/chase/awrit/commit/09b5bec8ac0743f7f7bffa21bb6e15ea55e6d510

GustavoJCL commented 6 days ago

Sorry, I didn't have much time that month. Now I can contribute more actively to rewriting it in Electron. What elements or modules need to be implemented?

chase commented 5 days ago

Sorry, I didn't have much time that month. Now I can contribute more actively to rewriting it in Electron. What elements or modules need to be implemented?

No problem at all, I've been quite busy myself.

Honestly, there's quite a bit to be done still. Electron's ecosystem is still quite frustrating to work with.

I guess the first few things to solve:

That should bring it almost to parity with the existing implementation.