Texas Instruments TI89 Developer Guide - Page 1114
teRec
![]() |
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 1114 highlights
1072 Appendix A: System Routines - Text Editing TE_shrinkWrap Declaration: HANDLE TE_shrinkWrap (TERecord * teRec) Category(ies): Text Editing Description: Returns handle to edit buffer. This routine turns off the cursor and frees any slack space in the edit buffer. Unlike TE_close, this routine does not release edit buffer memory. During normal edit processing, the text editor keeps some slack space in the edit buffer. This allows new text to be inserted quickly without annoying pauses while the edit buffer is expanded to accommodate another character. TE_shrinkWrap removes the slack space before returning the edit buffer to you. Inputs: teRec - Pointer to text edit record previously initialized with a call to TE_open or TE_openFixed. Outputs: Returns a handle to the edit buffer. A null byte marks the end of the text in the edit buffer. Assumptions: This routine does not free edit buffer memory. You must either free the edit buffer handle or call TE_close to do it when you are finished with the text. Side Effects: Cursor blink is turned off. Availability: All versions of the TI-89 / TI-92 Plus. TI-89 / TI-92 Plus Differences: None See Also: TE_open, TE_openFixed, TE_reopen, TE_reopenPlain Example: hBuf = TE_shrinkWrap(&teRec); /* get handle to edit buffer */ . . /* process contents of edit buffer */ . if (bSelectAll) TE_reopen(&teRec, TRUE); /* select all text */ else TE_reopenPlain(&teRec, TRUE); /* start cursor/select where TE_shrinkWrap left it */ TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001
![](/manual_guide/products/texas-instruments-ti89-developer-guide-95b636f/1114.png)