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

ReturnTextPacket

ReturnTextPacket[string]
is a MathLink packet containing string, the result of an EnterTextPacket evaluation.
Launch a subsidiary Mathematica kernel process:
Read the first packet:
Use EnterTextPacket to write a packet representing the text to enter:
Read the packet representing the output prompt:
The result from the computation is a ReturnTextPacket expression:
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]=
Use EnterTextPacket to write a packet representing the text to enter:
In[3]:=
Click for copyable input
Read the packet representing the output prompt:
In[4]:=
Click for copyable input
Out[4]=
The result from the computation is a ReturnTextPacket expression:
In[5]:=
Click for copyable input
Out[5]=
Close the link:
In[6]:=
Click for copyable input
New in 3