 |
TE_reopen |
Function (ROM Call 0xAF) |
Re-opens the text editor.
TE_reopen first checks free space in the text editor buffer (associated with the structure
pointed to by te) by calling TE_checkSlack, selects all
characters in the editor buffer using TE_select, and eventually
gives the focus to them if Focus is TRUE (Focus is
Boolean parameter). This function is a good method to re-open previously edited text on
such way that all text is selected and focused, so the eventual keypress will replace the
selected text. It is usually used to reopen a text edit record which has been closed by
TE_shrinkWrap.
Uses: TE_checkSlack, TE_focus, TE_select
Used by: cmd_input, cmd_inputstr, cmd_prompt, HomeExecute