The Insert key inserts the primary selection, at the position of the insertion cursor.
%
The Select key and Control-Space set the selection anchor to the position of the insertion cursor.  They don't affect the current selection.  Shift-Select and Control-Shift-Space adjust the selection to the current position of the insertion cursor, selecting from the anchor to the insertion cursor if there was not any selection previously.
%
Control-5 (keypad) or Control-/ (or the menu option Edit/Select all) selects all the text.
%
Control-\ clears any selection in the text.
%
The Delete key (or the menu option Edit/Delete) deletes the selection, if there is one in the text.  If there is no selection, it deletes the character to the right of the insertion cursor (as Control-d does).
%
The Backspace key deletes the selection, if there is one in the text.  If there is no selection, it deletes the character to the left of the insertion cursor.
%
The F16 key (labelled Copy on many Sun workstations) or Meta-w or Control-c (or the menu option Edit/Copy) copies the selection in the text to the clipboard, if there is a selection. 
%
The F20 key (labelled Cut on many Sun workstations) or Control-w or Control-x (or the menu option Edit/Cut) copies the selection in the text to the clipboard and deletes the selection.  If there is no selection in the text then these keys have no effect. 
%
The F18 key (labelled Paste on many Sun workstations) or Control-y or Control-v (or the menu option Edit/Paste) inserts the contents of the clipboard at the position of the insertion cursor. 
%
The Left and Right keys move the insertion cursor one character to the left or right; they also clear any selection in the text.  Control-b behave the same as Left.  If Left or Right is typed with the Shift key down, then the insertion cursor moves and the selection is extended to include the new character. 
%
Control-Left and Control-Right move the insertion cursor by words, and Control-Shift-Left and Control-Shift-Right move the insertion cursor by words and also extend the selection.  Meta-b and Meta-f behave the same as Control-Left and Control-Right, respectively. 
%
The Up and Down keys move the insertion cursor one line up or down and clear any selection in the text.  If Up or Right is typed with the Shift key down, then the insertion cursor moves and the selection is extended to include the new character.  Control-p behaves the same as Up. 
%
Control-Up and Control-Down move the insertion cursor by paragraphs (groups of lines separated by blank lines), and Control-Shift-Up and Control-Shift-Down move the insertion cursor by paragraphs and also extend the selection. 
%
The Next and Prior keys move the insertion cursor forward or backwards by one screenful and clear any selection in the text.  If the Shift key is held down while Next or Prior is typed, then the selection is extended to include the new characters. 
%
Home and Control-a move the insertion cursor to the beginning of its line and clear any selection in the text.  Shift-Home moves the insertion cursor to the beginning of the line and also extends the selection to that point. 
%
End and Control-e move the insertion cursor to the end of the line and clear any selection in the text.  Shift-End moves the cursor to the end of the line and extends the selection to that point. 
%
Control-Home and Meta-< move the insertion cursor to the beginning of the text and clear any selection in the text.  Control-Shift-Home moves the insertion cursor to the beginning of the text and also extends the selection to that point.
%
Control-End and Meta-> move the insertion cursor to the end of the text and clear any selection in the text.  Control-Shift-End moves the cursor to the end of the text and extends the selection to that point. 
%
Control-Next and Control-Prior scroll the view right or left by one page without moving the insertion cursor or affecting the selection. 
%
Control-k deletes from the insertion cursor to the end of its line; if the insertion cursor is already at the end of a line, then Control-k deletes the newline character. 
%
Control-t reverses the order of the two characters to the right and left of the insertion cursor or the two ones to the left if the insertion cursor is at the end of a line.  This is useful to quickly correct typing mistakes. 
%
If multiple undoes aren't enabled, Control-z toggles between undoing and reapplying the last edit action.  Otherwise Control-z undoes the last edit action and Control-r or Control-Z (Control-y on Windows) reapplies it.
%
Control-o opens a new line by inserting a newline character in front of the insertion cursor without moving the insertion cursor.
%
Dragging with mouse button 1 strokes out a primary selection between the insertion cursor and the character under the mouse. 
%
Double-clicking with mouse button 1 selects the word under the mouse and positions the insertion cursor at the end of the word. 
%
Dragging after a double click will stroke out a primary selection consisting of whole words.
%
Triple-clicking with mouse button 1 selects the line under the mouse and positions the insertion cursor at the end of the line. 
%
Dragging after a triple click will stroke out a primary selection consisting of whole lines.
%
The ends of the primary selection can be adjusted by dragging with mouse button 1 while the Shift key is down; this will adjust the end of the primary selection that was nearest to the mouse cursor when button 1 was pressed.  If the button is double-clicked before dragging then the primary selection will be adjusted in units of whole words; if it is triple-clicked then the primary selection will be adjusted in units of whole lines.
%
If mouse button 2 is clicked without moving the mouse, the primary selection is copied into the text at the position of the mouse cursor.  The Insert key also inserts the primary selection, but at the position of the insertion cursor.
%
Clicking mouse button 1 positions the insertion cursor just before the character underneath the mouse cursor, sets the input focus to the textarea, and clears any primary selection in the text.  Clicking mouse button 1 with the Control key down will reposition the insertion cursor without affecting the primary selection. 
%
The view in the text area can be adjusted by using the scrollbars or dragging with mouse button 2.
%
If the mouse is dragged out of the text area while button 1 is pressed, the text will automatically scroll to make more text visible (if there is more text off-screen on the side where the mouse left the window). 
%
To create a diary or log file begin your text with a first line exactly like this: .LOG
%
Did you find a bug? Please read "How to report a bug" in tpad documentation available from the Help menu, option Help.
%
To invoke tpad and position the cursor at the beginning of a certain line use a command like `tpad +num file'.  While in tpad you can always use the "Goto line" option in the Edit menu to reposition the cursor at the beginning of a line given its number. 
%
You can edit multiple file in sequence using a command like `tpad file1 ... filen'.  Use the Next option under the File menu to advance to the next file to edit.
%
You can safely use tpad as a simple pager or viewer for one or multiple files in sequence, by using the -R command line option or invoking it as tview.
%
tpad stands for Tcl pad. This is because is written entirely in Tcl/Tk.
%
For updates visit tpad homepage at <http://tclpad.sourceforge.net>
%
tpad is free software covered by the GNU General Public Licence. See <http://www.fsf.org/copyleft/gpl.html> for more details.
%
The status bar displays, in order from left to right: the full path and name of the file you are editing; if the file was Modified from the last saved version or if it is a Readonly file; the total number of lines; the percentage range of the document that is visible in the window; the x,y coordinates of the cursor.
%
A `.' metacharacter in a regular expression (abbrev. RE or regexp) matches any single character. To match a literal `.' use an escape: `\.'
%
In a regexp use a bracket expression to match any one of the enclosed characters (e.g., [a-z0-9_] matches a lowercase ASCII letter, a digit, or an underscore).
%
If you start a regexp with a `^', it will only match at the beginning of a line.
%
If you end a regexp with a `$', it will only match at the end of a line.
%
In a regexp a `*' makes the previous part of the RE match zero or more times.
%
In a regexp a `?' makes the previous part of the RE match zero or one time.
%
In a regexp a `+' makes the previous part of the RE match one or more times (e.g, [0-9]+ matches any integer).
%
In a regexp use `|' to match just one alternative.
%
Use parenthesis `()' to group part of a RE.
%
In a regexp use an escape character `\' to disable the meaning of a metacharacter as ^ $ * ? + | ( ) [ ] . \
%
To search only for whole words, use regexp and wrap the word in \m and \M (e.g. \mword\M).
