term.gfx.proto.send_data_shm

term.gfx.proto

send_data_shm(data, options, use_sync) -> ok, err

Send image data to the terminal via POSIX shared memory

Creates a POSIX shared memory object with an auto-generated name (/lilush-<nanoid>), writes data into it, then sends the Kitty graphics command with t=s (shared memory transport) and S=<size> added to options automatically.

When use_sync is true the write is wrapped in synchronized output mode escapes to prevent tearing.

Returns nil and an error string if the shared memory object cannot be created.