TextPacket[string]
is a WSTP packet containing string, the text output from the Wolfram System as produced by functions such as Print.
TextPacket
TextPacket[string]
is a WSTP packet containing string, the text output from the Wolfram System as produced by functions such as Print.
Examples
Basic Examples (1)
Launch a subsidiary Wolfram Language kernel process:
link = LinkLaunch[First[$CommandLine] <> " -wstp"]LinkRead[link]Write a packet representing the text to enter:
LinkWrite[link, EnterTextPacket["Print[2]"]]The result from the evaluation is a TextPacket:
LinkRead[link]LinkClose[link]Tech Notes
Related Guides
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), TextPacket, Wolfram Language function, https://reference.wolfram.com/language/ref/TextPacket.html.
CMS
Wolfram Language. 1996. "TextPacket." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TextPacket.html.
APA
Wolfram Language. (1996). TextPacket. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TextPacket.html
BibTeX
@misc{reference.wolfram_2026_textpacket, author="Wolfram Research", title="{TextPacket}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/TextPacket.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_textpacket, organization={Wolfram Research}, title={TextPacket}, year={1996}, url={https://reference.wolfram.com/language/ref/TextPacket.html}, note=[Accessed: 13-June-2026]}