dankamongmen / notcurses

blingful character graphics/TUI library. definitely not curses.
https://nick-black.com/dankwiki/index.php/Notcurses
Other
3.57k stars 112 forks source link

How to launch an interactive process in a ncplane #2726

Open ghost opened 1 year ago

ghost commented 1 year ago

hello , i tried to build a kind of terminal multiplexer such as zellij or tmux where process will be launched inside a ncplane, but a find the ncfdplane and ncsubproc definitions not so clear. I.E, the function ncfdplane_create(), take one parameter named " int fd", suppose i want to use the pair of pseudo-terminal master and slave, which one those should i use as a file descriptor parameter for ncfdplane_create() ?, one more thing!, is those function pointer (ncfdplane_calllback) and (ncfplane_done_cb) absolutly neccesary ?, please if possible provide some example about the way to implement a process laushing to ncplane, or at least more information about those function. Thank.