code wiki / (root) / nx_browser_demo_multiline.nx

nx_browser_demo_multiline.nx

buildroot/runtime/nx_browser_demo_multiline.nx

1821 B53 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind sketch/demotopic browser
docsdependenciesstructsconstsfunctions

about

nx_browser_demo_multiline.nx -- visible demo proving newline-aware text rendering. Paints "HELLO\nWORLD" via the extended nx_paint_text (which now interprets byte 10 / '\n' as a line break, resetting x to base and advancing y by the cell height).

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_css_color_decode.nx nx_paint_solid_rect.nx nx_paint_text.nx nx_paint_fb_ascii_dump.nx nx_browser_demo_multiline.nx

imports: nx_syscalls.nxnx_css_color_decode.nxnx_paint_solid_rect.nxnx_paint_text.nxnx_paint_fb_ascii_dump.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap nx_framebuffer_init nx_framebuffer_clear _put_byte nx_paint_text _paint_text_glyph nx_font_5x7_glyph_row _paint_text_pixel nx_paint_fb_ascii_dump _fb_ascii_char_for_pixel sys_write

structs

none

consts

11const K_MAGIC_1024: i64 = 1024

functions

13func _put_byte(buf: *u8, i: i64, v: i64) -> i64
called by 1: main
18func main() -> i64