You can instantiate a Textbox object as follows:
(0, 0). The instance's stripspaces flag is initially on.
Textbox objects have the following methods:
|Control-A||Go to left edge of window.|
|Control-B||Cursor left, wrapping to previous line if appropriate.|
|Control-D||Delete character under cursor.|
|Control-E||Go to right edge (stripspaces off) or end of line (stripspaces on).|
|Control-F||Cursor right, wrapping to next line when appropriate.|
|Control-G||Terminate, returning the window contents.|
|Control-H||Delete character backward.|
|Control-J||Terminate if the window is 1 line, otherwise insert newline.|
|Control-K||If line is blank, delete it, otherwise clear to end of line.|
|Control-N||Cursor down; move down one line.|
|Control-O||Insert a blank line at cursor location.|
|Control-P||Cursor up; move up one line.|
Move operations do nothing if the cursor is at an edge where the movement is not possible. The following synonyms are supported where possible:
All other keystrokes are treated as a command to insert the given character and move right (with line wrapping).
See About this document... for information on suggesting changes.