libtwili
January 13, 2020 ยท View on GitHub
This is a small library for interacting with Twili stdio through libnx.
Installation
$ cd /tmp
$ mkdir twili-libnx
$ cd twili-libnx
$ wget https://github.com/misson20000/twili-libnx/raw/master/PKGBUILD
$ makepkg -si
Alternatively, this package is in the AUR as libtwili.
Usage
Add -ltwili to your Makefile, before -lnx.
LIBS := -ltwili -lnx
- Include
<twili.h>. - Call
twiliInitialize()in your initializer. Remember to always check for errors. - Call
twiliExit()in your finalizer. - For monitored process standard I/O, use
twiliBindStdio(). - See twili.h for more.