4 ms·
It looks like the runtime has embedded local-gui-view-via-system-browser-server support. https://justine.lol/redbean/index.html https://justine.lol/redbean/inde
by dingdingdang 5y ago
It looks like the runtime has embedded local-gui-view-via-system-browser-server support. https://justine.lol/redbean/index.html https://justine.lol/redbean/index.html - more useful info: http://redbean.justine.lol/redbean.lua?x=hi%20there%00%C0%80&y&z&z=%26 http://redbean.justine.lol/redbean.lua?x=hi%20there%00%C0%80...
- jart 5y agoThere's also WIN32 GUI support too. See this demo program called apelife which was built with Cosmopolitan Libc. https://justine.lol/apelife/index.html https://justine.lol/apelife/index.html It embeds a UNIX TUI that runs on both Windows and UNIX. It also embeds a WIN32 GUI too, in the same binary. There's also an example of how to build TUI panel applications in the examples/ folder. https://github.com/jart/cosmopolitan/blob/master/examples/panels.c https://github.com/jart/cosmopolitan/blob/master/examples/pa... The canonical example of a Cosmopolitan TUI would be https://justine.lol/blinkenlights/index.html https://justine.lol/blinkenlights/index.html I highly recommend writing TUIs because VT100+XTERM is universal these days and termios was easy to polyfill across operating systems. These things literally run in the CMD.EXE DOS command box on Windows 10 without needing any special #ifdef or conditions, which is wild, and it even works on metal via the serial uart port. make -j8 o//tool/viz/deathstar.com qemu-system-x86_64 -m 16 -nographic -fda o//tool/viz/deathstar.com You don't have to do anything special either. You just write your TUI program in the conventional UNIX style.
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]