This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

TextPacket

TextPacket[string]
is a MathLink packet containing string, the text output from Mathematica as produced by functions such as Print.
Launch a subsidiary Mathematica kernel process:
Read the first packet:
Write a packet representing the text to enter:
The result from the evaluation is a TextPacket:
Close the link:
Launch a subsidiary Mathematica kernel process:
In[1]:=
Click for copyable input
Out[1]=
Read the first packet:
In[2]:=
Click for copyable input
Out[2]=
Write a packet representing the text to enter:
In[3]:=
Click for copyable input
The result from the evaluation is a TextPacket:
In[4]:=
Click for copyable input
Out[4]=
Close the link:
In[5]:=
Click for copyable input
New in 3