More notcurses fun. Not stable! (0.39.4)
This commit is contained in:
parent
69b9b87dd4
commit
18ac230c21
19 changed files with 715 additions and 15 deletions
9
docs/external/notcurses.md
vendored
9
docs/external/notcurses.md
vendored
|
|
@ -11,8 +11,17 @@
|
|||
- OP_NC_CLEAR: clear screen/plane; returns 0
|
||||
- OP_NC_DRAW_TEXT: pops text, x, y; draws; returns 0
|
||||
- OP_NC_GETCH: pops timeout_ms; returns codepoint or -1 on timeout/error
|
||||
- OP_NC_GET_SIZE: push [rows, cols] of the stdplane, or -1 if unavailable
|
||||
- OP_NC_SET_STYLE: pops style, bg_rgb, fg_rgb; sets colors/styles for stdplane; returns 0/-1
|
||||
- OP_NC_DRAW_CHAR: pops ch, x, y; draws a single Unicode codepoint; returns 0/-1
|
||||
- OP_NC_DRAW_HLINE: pops len, x, y, ch; draws a horizontal line; returns 0/-1
|
||||
- OP_NC_DRAW_VLINE: pops len, x, y, ch; draws a vertical line; returns 0/-1
|
||||
- OP_NC_BOX: pops x, y, w, h, style; draws a rectangle using ASCII/Unicode box glyphs; returns 0/-1
|
||||
- OP_NC_FILL: pops x, y, w, h, ch; fills an area with a codepoint; returns 0/-1
|
||||
- OP_NC_RENDER: forces a render; returns 0/-1
|
||||
|
||||
## Notes:
|
||||
|
||||
- Requires Notcurses development headers/libs.
|
||||
- Behavior may vary across terminals; see the implementation for details.
|
||||
- When Fun is built without Notcurses (FUN_WITH_NOTCURSES=OFF), these opcodes still exist but perform no-ops and return -1/0 as documented, allowing scripts to degrade gracefully.
|
||||
|
|
|
|||
|
|
@ -232,6 +232,14 @@ This document provides an overview of the available VM opcodes implemented under
|
|||
- OP_NC_CLEAR: Clear screen; pushes 1/0.
|
||||
- OP_NC_DRAW_TEXT: Draw text at (x,y); pops text, x, y; pushes 1/0.
|
||||
- OP_NC_GETCH: Get key with timeout; pops timeout_ms:int; pushes int key or -1.
|
||||
- OP_NC_GET_SIZE: Get stdplane size; pushes [rows:int, cols:int] or -1 if unavailable.
|
||||
- OP_NC_SET_STYLE: Set stdplane style/colors; pops style:int, bg_rgb:int, fg_rgb:int; pushes 0/-1.
|
||||
- OP_NC_DRAW_CHAR: Draw a single codepoint at y,x; pops ch:int, x:int, y:int; pushes 0/-1.
|
||||
- OP_NC_DRAW_HLINE: Draw horizontal line; pops len:int, x:int, y:int, ch:int; pushes 0/-1.
|
||||
- OP_NC_DRAW_VLINE: Draw vertical line; pops len:int, x:int, y:int, ch:int; pushes 0/-1.
|
||||
- OP_NC_BOX: Draw a rectangular box; pops x:int, y:int, w:int, h:int, style:int; pushes 0/-1.
|
||||
- OP_NC_FILL: Fill rectangle with codepoint; pops x:int, y:int, w:int, h:int, ch:int; pushes 0/-1.
|
||||
- OP_NC_RENDER: Force a render; pushes 0/-1.
|
||||
|
||||
## SQLite-compatible lib (libSQL)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue