zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
21.54k stars 651 forks source link

Enable developpers to package ncurses apps #1598

Open rambip opened 2 years ago

rambip commented 2 years ago

Given how cool this project is, I tried to compile some existing terminal-based apps to wasi to use them inside zellij.

The issue is, support for ncurses is lacking for wasi right now.

Is it technically possible to provide a ncurses api in zellij, so that people could run terminal-based programs in zellij without worrying about the platform ?

rambip commented 2 years ago

I think it would be really cool to be able to export ncurses functions, and have zellij implement them. Imagine the number of terminal apps zellij could easilly package with that !

rambip commented 2 years ago

for curiosity, here are all the functions that ncurses export (libncurses.so): https://pastebin.com/997GpNNU

But a mot of programs use a very small part of them. For example: https://github.com/6112/cursesjs