LAUREL MANUAL404.4. Keyboard CommandsThere are many other functions available in the Laurel editors. These functions are present inboth editors, but the ways in which they are invoked differ substantially. This section firstdescribes how the commands are invoked in either editor and then lists each function inalphabetical order of command character. Those commands invoked by special keys (other thanthe alphanumeric keys) are listed last. Each command description will give the command letterwith which it is invoked in the modal editor first, with the letter(s) with which it is invoked in themodeless editor given in following parentheses. For example, the Time command is described asthe T (COM-T) command.Modal editor command invocationThe modal editor accepts keyboard input in two different modes, command mode and insertmode. At the beginning of a Laurel session, the editor is in command mode, i.e., any charactertyped will be interpreted as an editor command rather than as type-in. Three commands--A, I,and R--put the editor into insert mode. When in insert mode, a blinking caret appears, and alltype-in is treated as characters to be inserted into your message until an ESC or DEL character isstruck. At that time, insert mode is terminated and command mode is re-entered.It is possible in Laurel 6 to invoke screen commands, i.e., those invoked via screen menus and themouse, even when in insert mode. When the screen command has completed, you will find thecaret still blinking, and type-in will continue to be accepted.Modeless editor command invocationThe modeless editor uses more function keys than does the modal editor. These names of thesekeys and their positions on the Alto keyboards are given in the following table:Microswitch (Alto I)ADL (Alto II)Key name keyboard position keyboard position(s)DOESC keyESC keyCANCELTop right blankBW keyNEXTMiddle right blankFourth right blank key from the topCOMLower right blankLower left, upper right, and lower right blanksPASTELF keyLF keyDELDEL keyDEL keyYou may find it convenient to write the key names in pencil next to the corresponding keys onyour keyboard or to tape these key names onto these keys. If you have a BravoX keyboard, thesekeys are already labelled properly except for the PASTE key, which is labelled MOVE.$fpqpXq gfp g_r gZp+4 gXK gVF gU*W gS_O gQ \ gOF gMqp gIss gFp!6 gD7,3 gBl&2qpqp g@qpE g>&%qpqp g= P g9+7 g7H g6? g1ys" g.pN g,<P') g%) g"Pqqp)qp g qp)qp gqp) gqp) g&qqp)qp g[qqp)qp gV gA g:#q0p  gpqp4sp g=  g9!*qpqp g7"@ g6@ g2!qp qp g0X g.. g+>sp g)6q % g( g"Prtrtr gpArp gsp4 gIs pqpD g~ g "sp$ gB#qp, gw:) g, l gf=W4LAUREL MANUAL42The B (COM-B) command is implemented as a replacement of text. A subsequent ESC (DO) will not bracket newtext but will instead replace the selected text by the text inserted by the previous B (COM-B) command. This isalmost never what you want; use another B (COM-B) to repeat the command instead.4.4.3. D (DEL, COM-D)  Delete textThe D (DEL, COM-D) command deletes the selected text from the message in the compositionregion. This text is not yet gone forever; it may be recovered with a U (CANCEL, COM-U)command, an I ESC or A ESC, or a (PASTE) command.In the modeless editor, this command is generally called the DEL command. COM-D is allowed to preserve thecommand spellings from the modal editor. See also the description of replace selection, section 4.2.12.In the modeless editor, a DEL command leaves the caret blinking at the spot from which theselected text was removed. Thus, to replace text, you may select the text to be replaced, typeDEL, and then type in the new text. The editor understands that if no target selection is madebetween the DEL command and subsequent type-in (including shifted selection), then the entiresequence is treated as one replacement for purposes of CANCEL or DO (see sections 4.4.12 and4.4.13).In the modeless editor, yet another method of deleting text is available, the CTRL-SHIFT tap. Youperform a CTRL-SHIFT tap by quickly depressing and releasing both the CTRL and SHIFT keystogether. The selected text is briefly video reversed, and then is deleted. A timeout (the Tap:parameter in the Laurel profile, section 5) is checked; if the CTRL-SHIFT copmbination is helddown longer than the timeout, then the CTRL-SHIFT has no effect. The CTRL-SHIFT tap is thus a"left hand delete" key for modeless editor users.4.4.4. E (COM-E)  Select everythingThe E (COM-E) command merely selects the entire message in the composition region. Theselection is made at the character level.In the modeless editor, the selection is a replace selection.4.4.5. F (COM-F)  FindThe F (COM-F) command initiates the Find screen command. This screen command, when visible,is located on the second line of the lower menu. F (COM-F) will always reset the lower menu sothat the Find command occupies that position. When the Find command is visible, it may also beinvoked with the mouse, in addition to this method of invoking it through the keyboard.$fpqpXq gfp g_9qCuq g]V g\1P gVgrt r gRpq p' gQ+.q gO`p qpqpqp gLq\ gJh gG?pqp% gEt6) gCqp\ gA qpN g@&qpqp g>J g:;q p g9 q p2qpqp g7B;& g5x(q p g3q pq p g11 g+rtr g(pqp- g&) g#G= gZrtr gpqprp4 g (qp$ gSrp+rp g&1 \ gA gH]P]B g]S]: 6 g=O(LAUREL MANUAL44These last two special characters ({ and }) allow you to specify context in a Find command search. If you have everbeen bothered by issuing a search command in some editor, for say "and", only to have that editor grin back at youwith the last three letters of the word "command" selected, then search context is for you. An isolated word such as"and" is always surrounded by non-alphanumeric characters in text. Consider the pattern:!{and}!Each ! must match one non-alphanumeric character in the text. Thus the pattern !and! would match only an isolated"and" together with its surrounding characters. The curly braces are added to the pattern to limit the resultingselection to only the word "and". Note that if you wish to find only lower case "and" words, then you must precedeeach of the a, n, and d characters by a single quote as in:!{'a'n'd}!At most one pair of curly braces may be used in any pattern, and if both are used, then the left curly brace mustprecede the right curly brace.By combining curly braces and various special characters in a pattern, quite complicated and precise searches may bespecified. However, simple patterns involving no special characters should suffice for most applications of the Findcommand.4.4.6. G (COM-G)  Get fileThe G (COM-G) command is used to replace the selected text with the contents of a specified file.This editor keyboard command differs from the Get screen command in that only the selectedtext is replaced, not the entire message.When you issue the G (COM-G) command, the Get screen command acquires a gray background,the File name {brackets} appear, and a blinking caret appears in those {brackets}. Unlike Laurel5.1, the brackets are not initialized with the selected text. At this point, you may fill in the name of the filewhose text will replace the selected text in the message in the composition region. When the{brackets} are filled in and confirmed, the replacement will take place. In the modeless editor, if notext is selected, then the file contents are merely inserted at the blinking caret.The same restrictions on length of file and text files only from the Get screen command apply tothe G (COM-G) command as well. See section 3.5.1.4.4.7. I (COM-I)  Insert textThe I (COM-I) command places the insertion point (blinking caret) before the selected text in themessage composition region.In the modal editor, this command puts the editor into insert mode. Until ESC or DEL is struck,characters will be inserted at the insertion point as described in section 4.2, Text Input. Also,before typing any characters, secondary selection is available.$fpqpXq gfp g_9qAuqtq" g]H* g\1@5 gZY]XU gUf gTyg gRY gQq;]O gKW gJj gG?%O gE\t gD7q g>mrtr g:pqp(, g90)rp) g7f) g3qp rp+ g2)sprprp/rprpq g0_=p5 g.B g,rprp@q g+"S g'p; rp g& qp% g rtr gpqp5sp g gm!*qpqp g"@ g? T g=Tz4. The Laurel Editor45In the modal editor, if the first character struck after the I command is ESC, then the previous textinsertion is copied to the insertion point, or if the previous command was a deletion, then thatdeleted text is copied to the insertion point.In the modeless editor, the insertion point is merely moved to be before the selected text.4.4.8. P (COM-P)  Put fileThe P (COM-P) command is used to write the selected text onto a specified file. This editorkeyboard command differs from the Put screen command in that only the selected text is written,not the entire message.When you issue the P (COM-P) command, the Put screen command acquires a gray background,the File name {brackets} appear, and a blinking caret appears in those {brackets}. At this point,you may fill in the name of the file to be written with the selected text in the message in thecomposition region. When the {brackets} are filled in and confirmed, the writing will take place.A confirmation is necessary if the file already exists.As with the Put screen command, only text is written; for binary files see the Copy command,section 3.5.3.4.4.9. R (COM-R)  Replace textThe R command in the modal editor is used to replace the selected text by type-in (includingshifted selection) or by secondary selection. The R command puts the modal editor into insertmode. See section 4.2, Text Input.In the modal editor, if the first character struck after the R command is ESC, then the last textinserted or the last text deleted if the last command was D is inserted to replace the selected text.The (COM-R) command in the modeless editor is provided primarily for compatibility with oldmodal habits. It is equivalent to the (DEL) command in that it deletes the selected text and blinksthe caret at the vacated point. With replace selection available in the modeless editor, the (COM-R) command is never needed.4.4.10. S (COM-S)  SubstituteThe S (COM-S) command initiates the Substitute screen command. This screen command, whenvisible, is located on the second line of the lower menu. S (COM-S) will always reset the lowermenu so that the Substitute command occupies that position. When the Substitute command is$-fpXFf g_8qp qp g]KF g[. gX+sp gR"rtr gNpqp D gL"rp gK gGqp rp gEsprprp #rprp gDX gBIrprp. g@q7 g=Sp rp@rp g; g5rtr g2)pqpO g0_3qp* g." g+"=qp qp g)Wq$ p* g%qp8 g$'qp g"P Rq g p grtr g'pqpr p g\%qp gr p#r p  gJ=TLAUREL MANUAL46visible, it may also be invoked with the mouse, in addition to this method of invoking it throughthe keyboard. The second line of the lower menu will look like this:Substitute {new text} for {pattern to be replaced}Prior to invoking the Substitute command, you should select the range of text in whichsubstitution is to take place. When the Substitute command is invoked with RED, or via the S(COM-S) command, it blinks a caret in the following {brackets}. This should be filled in with theexact text to be written into the message. When this argument is filled in and confirmed, thecaret will blink in the for {brackets} and a prompt will appear in the feedback region to remindyou of the special characters that may be used in the pattern to be typed into these {brackets}.Once the pattern is typed into these {brackets} and is confirmed, the Substitute command willsearch for that pattern within the selected text of the message in the composition region. Eachsequence of text within the selection that matches the pattern given in the for {brackets} will bereplaced by the text in the initial {brackets}. After a pattern match is found and the selectedportion replaced by the text in the initial {brackets}, the search for the next match within the textproceeds with the first character following the text just matched. Thus, substitution within newlyreplaced text cannot occur in a single invocation of the Substitute command. The special characters and pattern specifications allowed in the for {brackets} of the Substitutecommand are the same as those allowed by the Find command (section 4.4.5).The results of the Substitute command are treated as if one large replacement of text over theinitial selection had occurred. Thus U (CANCEL) (section 4.4.12) works properly. The ESC (DO)command (section 4.4.13) will repeat this replacement on subsequently selected text. This isgenerally not what you want. To repeat the same Substitute command, select the text in whichyou want the Substitute command to operate, point the cursor at Substitute and click BLUE.Unlike Bravo, the Substitute command cannot be terminated by typing DEL. However, since thiscommand can be completely undone with U (CANCEL) after it has finished, the lack of apremature termination mechanism should not be a hardship.4.4.11. T (COM-T)  Time insertionThe T (COM-T) command inserts a text representation of the current time into the message in thecomposition region. This representation is