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.ÿî$ÌïfªpqpôXqî gïfñpî gï_rôî gïZŠpô§ð+ô¨ð4î gïX¿ôÏðKôÐî gïVôôïðFôðî gïU*ô—ðWô˜î gïS_ôŸðOô î gïQ”ô� ô‚ð\î gïOÊôŒðFô�î gïMÿôqpî gïIssî gïFpôÄð!ôÅð6î gïD7ô˜ð,ô™ð3î gïBlô¥ð&ô¦ð2qpqpî gï@¡ôžqpôŸðEî gï>×ô—ð&ô˜ð%qpqp î gï= ôðPî gï9šô€ð+ô�ð7î gï7Ðô–ðHô—î gï6ôð?î gï1ysð"î gï.pô”ðNô•î gï,<ôðPîÀï'°ô€î) ô î gï%åô€îÀî) ôî gï"PqîÀqpô€î) qpôî gï †qîÀpô€î) qpôî gï»qîÀpô€î) ôî gïðqîÀpô€î) ôËôÌ î gï&qîÀqpô€î) qpôî gï[qîÀqpô€î) qpôî gïÏôšô›ðVî gïô�ðAô‚î gï:ôð#qð0pÿ  gó<‡W94. The Laurel Editor41Since there is no special command mode in the modeless editor, a special way of typingcommand letters is necessary to distinguish commands from ordinary type-in. There is noproblem when using one of the special keys, e.g., DO, CANCEL, NEXT, PASTE, or DEL; these arealways interpreted as commands. For ordinary characters, this is accomplished with the COM key.The COM key (any one of the COM keys) is used like a SHIFT key--hold it down while you typethe specified command letter. When a character is "COM shifted", the modeless editorunderstands that this character is to be treated as a command rather than as type-in. COM keytype-ahead is not supported.In the modeless editor, there is always an insertion point represented by the blinking caret. Aftertyping in text but before making a new selection, there is no underlined (selected) text. In thiscase, the selection is considered to be the zero-length selection at the insertion point. Severalcommands, e.g., the bracket commands (section 4.4.16), that work on the selected text will operateon this null selection when no text is underlined.4.4.1. A (COM-A)  Append textThe A (COM-A) command places the insertion point (blinking caret) after 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 you may make a secondary selection.In the modal editor, if the first character typed after the A command is ESC, then the previoustext insertion is copied to the insertion point; 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 after the selected text. Thiscommand is almost never needed in the modeless editor unless you want to insert after a final CR in amessage.4.4.2. B (COM-B)  Placeholder bracketsThe matching black triangles that surround words in the skeleton forms provided by New form,etc., are called placeholder brackets, and the complete word including these triangles is called aplaceholder. The B (COM-B) command replaces the selected text with a copy of itself surroundedby these placeholder brackets.In the modeless editor, the insertion point is placed to the left of the right bracket thus inserted.If there is no underlined text, and the COM-B command is given, then the null text at theinsertion point is replaced by these placeholder brackets, the insertion point is between them, andsubsequent type-in fills in the placeholder.î$-ïfªpôXîF�ïfñî gï_ôëðVî gï]Kôáð4ôâð$î gï[€ô¥ð2qpqpqpqpô¦qp î gïY¶ô…ô†ðFqpî gïWëôšqpqpqpô›ð!î gïV!ô ð%ô qpî gïTVô©ð3ôªð"qî gïR¯ôî gïO`pô†ð:ô‡ð*î gïM•ôœô�ðYî gïKËô´ðZôµî gïJôƒðZô„î gïH6ôð2î gïBIrtr î gï>×pôœqpð4ô�spî gï= ôî gï9šô‘ð!ô’ð*qpqp î gï7Ðô­ð"ô®ð@î gï6ôð@î gï2“ô¦ô§ð!qp qpî gï0Èô”ðXô• î gï.þôð.î gï+Œôªð>ô«spî gï)Áô—ð6q ô˜ð%î gï(î gï"Prôtrtrî gïÞpôŸô ðArpî gïô©spð4ôªî gïIs pô—ô˜qpðDî gï~ôî gï ô“ô”ð"spð$î gïBôÔð#ôÕqpð,î gïwô‡ð:ôˆð)î gï­ôð, l gf=‡W¥4LAUREL 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.ÿî$ÌïfªpqpôXqî gïfñpî gï_9qô–ô—ðCuq î gï]µô¦ðVô§î gï\1ôðPî gïVgrt r î gïRõpôÂq pð'ôÃî gïQ+ôÕôÖð.qî gïO`pô qpqpqpî gïLqô«ô¬ð\î gïJ�ôðhî gïG?pôºqpð%ô»î gïEtô¬ð6ô­ð)î gïC©qpô¢ð\î gïAßô¦ qpô§ðNî gï@ô®ð&ô¯qpqpî gï>Jî gï:Øô‡ð;ôˆq p î gï9 ô» q pð2qpô¼qpî gï7Bô£ð;ô¤ð&î gï5xô´ð(ôµq pî gï3­ô“ô”q pq p î gï1ãôð1î gï+örtrî gï(„pôÔqpð-ôÕî gï&¹ôð)î gï#Gð=î gïZrtrî gïèpô…qpô†rpð4î gïô” ô•ð(qpð$î gïSô�rpð+rpô‚î gïˆôêð&ôëð1ÿ \ gA<‡SÊ4. The Laurel Editor43When the Find command is invoked with RED, or via the F (COM-F) command, it blinks a caret inthe following {brackets}. A prompt will appear in the feedback region to remind you of thespecial characters that may be used in the pattern to be typed into these {brackets}. Once thepattern is typed into these {brackets} and is confirmed, the Find command will search for thatpattern in the text following the current selection (or insertion point in the modeless editor if notext is underlined). If a match is found, it is selected and the message is normalized so that thismatch is visible. In the modeless editor the selection is a replace selection.The ESC (DO) command (section 4.4.13) does not repeat a Find command. ESC (DO) alwaysrepeats the last text modification. To repeat the same Find command, point the cursor at Findand click BLUE. An equivalent of the Bravo Y(es) command is thus ESC (DO) followed by BLUEclick of Find. The ESC (DO) does the text replacement, and the BLUE click of Find does thesubsequent search.The patterns accepted by the Find command may be simple or somewhat complex. When the Find command isinitiated, a prompt appears in the feedback region giving an abbreviated list of the special characters available andtheir meanings. You may never need the more complex patterns, but a complete list follows.Simple character (other than the special characters listed below): Match that character in either upper or lower case.' (Single quote): Match the next character in the pattern exactly. Use the single quote to override the upper orlower case feature or to match a special character (including single quote!) All of the special characters areshifted keyboard top row characters (except {, }, and '). If you wish to match any such character it is agood idea to precede it with a single quote.#:Match any single character (as in the Alto Executive).*:Match any sequence of characters (including the trivial sequence of no characters, as in the Alto Executive).The phrase "any sequence" here and in the following means "the shortest such sequence of characters thatallows the rest of the pattern to match".@:Match any single alphanumeric character (letter or digit).&:Match any sequence of alphanumeric characters (including the trivial sequence of no characters).!:Match any single non-alphanumeric character (punctuation, blank, special characters, etc.).~:Match any sequence of non-alphanumeric characters (including the trivial sequence of no characters).{:Make the resulting selection start at this position, rather than at the start of the matched pattern. Thisspecial character is not used to match any characters in the text.}:Make the resulting selection end at this position, rather than at the end of the matched pattern. This specialcharacter is not used to match any characters in the text.ÿî$-ïfªpôXîF�ïfñî gï_ô„rpqp qpô…î gï]Kôµ rprpð8ô¶ î gï[€ô£ð8ô¤rprp î gïY¶ô¨rprprpô©î gïWëô’ô“ðGî gïV!ô‘ð#ô’ðAî gïTVôqð<î gïPäpôÎqpsp rp ôÏqpî gïOô¨s pô©rprî gïMOpô˜ qpð4qp qî gïK„pô»rpô¼qpð$qp rpî gïIºôî gïFkqô® ô¯tqð6tq î gïDçô¥ðTô¦ð!î gïCcôð[î gï@7ô‘ðwî gï= ô¥ð2ô¦ð@î]ï;ˆô‹ð2ôŒð=î]ï:ô›ðbôœî]ï8€ôð,î gï5Uî]ð6î gï2)î]ôŒðCô�ð*î]ï0¥ô•ðhî]ï/!ôð)î gï+öî]ð:î gï(Êî]ð`î gï%Ÿî]ð[î gï"sî]ôÝð&ôÞð>î gïHî]ô­ð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.ÿî$ÌïfªpqpôXqî gïfñpî gï_9qôŠðAuqô‹tqð"î gï]µô�ðHôŽð*î gï\1ô‹ð@ôŒð5î gïZ­ôðYî]ïXUî gïUýô‰ðfôŠ î gïTyô¸ðgô¹ î gïRõô…ô†ðYî gïQqôð;î]ïO î gïKîôšðWô›î gïJjôî gïG?ô‘ð%ô’ðOî gïE»ô¢ð\ô£tî gïD7qî gï>mrôtr î gï:ûpô�qpð(ôŽð,î gï90ô«ð)ô¬rpð)î gï7fôð)î gï3ôô–qp ô—rpð+î gï2)ô¢sprprpô£ð/rprpq î gï0_ô�ð=pô‚ð5î gï.”ô±ô²ðBî gï,Érprpô•ð@qî gï+"ôðSî gï'Ópô‹ð;ôŒ rpî gï& ôqpð%î gï rtr î gïªpôœqpð5spî gïßôî gïmô‘ð!ô’ð*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ÿî$-ïfªpôXîF�ïfñî gï_ô€ð8ô�qp qpî gï]Kô¥ðFô¦î gï[€ôð.î gïXôÞð+ôßspî gïR"rôtr î gïN°pôÃqp ôÄðDî gïLåô‡ð"rpôˆî gïKôî gïG¨ô¢qp rpô£î gïEÞô�sprprp ôŽð#rprpî gïDô©ðXôªî gïBIôˆrprpð.ô‰ î gï@¡qôð7î gï=Spô¨ rpð@rpî gï;ˆô î gï5›rtrî gï2)pô°qpô±ðOî gï0_ô§ð3qpô¨ð*î gï.”ôð"î gï+"ô¦ð=qp qpî gï)WôÏqð$ôÐ pð*î gï%åôµqpô¶ð8î gï$ô„ð'qpô…î gï"Pô� ô‘ðRqî gï †pôî gï™rtr î gï'pô£qpr pô¤î gï\ô¦ô§ð%qpî gï‘ô™r pôšð#r p ž gJ=‡TÁLAUREL 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