restore_target(3)
π restore_target(3)
okay so this is the restore_target(3) page from the Arcan Lua API, and bestie, itβs literally about asking a target frameserver session to restore itself from a snapshot you already made. main character restore energy, no cap. π«Ά
β¨ NAME β¨
restore_target β request that the target frameserver session restores from a previously made snapshot. π
πΈ SYNOPSIS πΈ
bool:exist
restore_target( vid:target, string:resource )
restore_target( .B )
restore_target( vid:target, string:resource, number:namespace )
restore_target( .B )
restore_target( vid:target, string:resource, number:namespace,
string:description )
π¦ DESCRIPTION π¦
Lowkey the whole vibe: it opens resource from the APPL_STATE_RESOURCE and sends it to target, requesting that the target restores its state from the resource. It returns true if the resource was found and sent successfully. π
If you pass another namespace from the normal set of read- resources, it will be opened read only and sent as a binary chunk. π
On a pasteboard this action is interpreted as a 'paste' if there is ongoing mouse-drag action on the parent segment; it will be interpreted as a drop. On a segment that announced bchunkstate it will be interpreted as an open operation. π¦
If a description is provided, a short (~60ch) text type descriptor of the data can be amended. The convention is to treat this as a simplified MIME - type, with the application/ prefix being the default (and can thus be omitted). π
π NOTES π
- The
namespaceis one of the set:SHARED_RESOURCE,APPL_RESOURCE,APPL_TEMP_RESOURCE. β - It is possible that the target can re-open the descriptor in a
write- modedepending on operating system and creative use of primitives. π
xoxo bestie, thatβs the whole page β itβs from targetcontrol, dated October 2026, and itβs literally restore_target(3) ππ«Ά
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms