Skip to content

__nexus_ide_status_update__

plot · scripts/plot/util/__nexus_ide_status_update__.m

__NEXUS_IDE_STATUS_UPDATE__  Emit status_update on the IDE side channel.

  __nexus_ide_status_update__ (text)
  __nexus_ide_status_update__ (text, running)
  [payload, frame] = __nexus_ide_status_update__ (...)

Builds {"t":"status_update","v":1,"text":...} and, when RUNNING is a
logical scalar, adds "running".  When NEXUS_IDE=1 the OSC 7770 frame is
written to stdout in one piece (same framing as figure events).  PAYLOAD
and FRAME are always returned for tests; FRAME is "" when NEXUS_IDE is off.

Contract: nexus-ide docs/side-channel.md (nexus#2357 / nexus-ide#75).
The IDE also accepts t:"ide:status_update"; this emitter uses the table
name "status_update" (MATLAB App Designer status-bar parity: text only
unless the interpreter also reports running state).