nx_nishi_desktop.nx
buildroot/runtime/nx_nishi_desktop.nx
about
nx_nishi_desktop.nx -- the NISHI SYSTEM "desktop": a unified status + launcher view of the whole
ecosystem, read DATA-DRIVEN from knowledge/registry/replacement_tools.tsv. Emits a styled HTML
"desktop" (coverage bar + a live tool grid color-coded by status + the DATA-DRIVEN gap list +
NishiOS boot/data-layer status) to knowledge/status/nishi_desktop.html, and prints the same census
to the CLI -- with the gap list derived from the catalog (no more hardcoded-stale gap string).
HONEST: a web desktop dashboard, not a real compositor/window-manager (that = deeper gui rung).
No hardware writes (Rule 26). expect_exit: 0 license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 9 | const K_MAGIC_32768: i64 = 32768 |
| 10 | const K_MAGIC_1024: i64 = 1024 |
| 11 | const K_MAGIC_65536: i64 = 65536 |
functions
| 13 | func dk_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 14 | func dk_putn(v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 } |
| 15 | func dk_streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while 1==1 { if a[i]!=b[i] { return 0 } if a[i]==(0 as u8) { return 1 } i=i+1 } return 1 } called by 1: main |
| 16 | func wa(buf: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){ buf[off+i]=s[i]; i=i+1 } return off+i } called by 1: main |
| 17 | func wn(buf: *u8, off: i64, v: i64) -> i64 { var o: i64=off; if v==0 { buf[o]=48 as u8; return o+1 } let t: *u8=sys_mmap(28); var m: i64=v; var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } var i: i64=0; while i<k { buf[o+i]=t[k-1-i]; i=i+1 } return o+k } |
| 18 | func dk_field(buf: *u8, ls: i64, le: i64, f: i64, out: *u8) -> i64 { var cur: i64=0; var i: i64=ls; var o: i64=0; while cur<f { if i>=le { out[0]=0 as u8; return 0 } if buf[i]==(9 as u8) { cur=cur+1 } i=i+1 } var go: i64=1; while go==1 { if i>=le { go=0 } else { if buf[i]==(9 as u8) { go=0 } else { out[o]=buf[i]; o=o+1; i=i+1 } } } out[o]=0 as u8; return o } called by 1: main |
| 20 | func main() -> i64 |