({{, (RefLink[InputPacket, paclet:ref/InputPacket])[] 
is a WSTP packet that indicates a prompt for input as generated by (RefLink[Input, paclet:ref/Input]).}})

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Launch a subsidiary Wolfram Language kernel process:

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

Read the first packet:

LinkRead[link]

Write the packet representing the text "Input[]" to enter:

LinkWrite[link,EnterTextPacket["Input[]"]]

Read the (RefLink[InputPacket, paclet:ref/InputPacket]) expression indicating a prompt for input:

LinkRead[link]

Close the link:

LinkClose[link]

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