({{, (RefLink[MenuPacket, paclet:ref/MenuPacket])[integer,string] 
is a WSTP packet indicating a menu request with title string.}})

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Launch a subsidiary Wolfram Language kernel process:

kernel=LinkLaunch[First[$CommandLine] <> " -wstp"]

Read the first packet and send an infinite loop program:

LinkRead[kernel]

LinkWrite[kernel,EnterTextPacket["k=0;While[True,k++]"]]

Send an interrupt:

LinkInterrupt[kernel]

A (RefLink[MenuPacket, paclet:ref/MenuPacket]) expression with an interrupt menu:

LinkRead[kernel]

Close the link:

LinkClose[kernel]

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[WSTP and External Program Communication, paclet:tutorial/WSTPAndExternalProgramCommunicationOverview])}})}})