TE_close Function (ROM Call 0xA5)

textedit.h

void TE_close (TEXT_EDIT *te);

Closes the text editor.

TE_close closes the text editor structure pointed to by te. I am not sure whether calling this routine is necessary: it performs mainly some irrelevant operations (like calling TE_unfocus). I also know that TE_close tries to free the memory occupied by the buffer (by calling HeapFreeIndir) if the editor was opened using TE_openFixed, and if the buffer was allocated dinamically. So, it seems that it tries to close out a text edit record and to release its memory automatically. It seems better to me to release the memory manually (it is more safe anyway).


Uses: TE_unfocus, HeapFreeIndir
Used by: cmd_input, cmd_inputstr, cmd_prompt, Dialog, GT_Trace