home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / editor / gal210a4.arc / GALCH4.GAL < prev    next >
Encoding:
Text File  |  1987-08-11  |  31.0 KB  |  1,030 lines

  1. .a  lp=12,js=y,ct=n bo=51 te=12 to=90 pn=1 nm=1
  2. .st3,14,1
  3. &dChapter%Four:%%The%Function%Keys .jc
  4. &d[%Chapter%Four%]  .hc
  5. .t36 4 - .zl
  6.  
  7.  
  8.  
  9.  
  10.  
  11.             &d4.1%INTRODUCTION  .jr
  12. .st3,11,1 .x-5
  13.  
  14.      In the first three chapters you used several of the function keys at the
  15. top of the keyboard.  This chapter describes these keys briefly.  Others that
  16. you learn here will give you faster and better editing capabilities.  You can
  17. use these keys in both the Edit and Command modes, but it is probably best to
  18. watch the screen when you edit.
  19.  
  20.      The function key locations are shown in Figure 1.1 for two typical IBM
  21. compatible computers.  Refer to these if you have any question of what keys are
  22. called the function and special keys.  On the older style keyboard, the numeric
  23. keypad combines the special and numeric keys.
  24.  
  25.      In Galahad, the function and special keys enable you to edit your text
  26. quickly and easily.  A quick reference to these keys is provided by the cutouts
  27. in Appendix A.  If you have not yet taped the cutouts to your computer, do so
  28. before reading further.
  29.  
  30.  
  31.  
  32. .st3,14,1
  33.         &d4.2%SCREEN%EDITING    .jr
  34. .st3,11,1 .x-5
  35.  
  36.      Function Keys <%F1%>, <%F2%>, <%F3%>, <%F4%>, <%SHIFT%> <%F1%>, <%SHIFT%>
  37. <%F2%>, and <%SHIFT%> <%F7%>, and Special Keys  <%HOME%> and <%END%> help you
  38. locate the parts of the text you wish to edit and help you make editing
  39. changes.  This section explains the use of these keys.
  40.  
  41.  
  42. .st3,12,1
  43. &dBottom/Top:%%%<%END%>%and%<%HOME%>
  44. .st3,11,1
  45.      To move the cursor to the bottom of a text file simply press the <%END%>
  46. key (a special or numeric keypad key).  You can do this no matter where the
  47. cursor is located.  This function is especially useful for adding text to the
  48. end of a long file.
  49.  
  50.  
  51.      To get to the top of a text file, simply press the <%HOME%> key.
  52. .g
  53. .rh1,78
  54. .i10
  55.  
  56.      &p&d1&nabsence
  57.     balance
  58.     calendar
  59.     %....
  60.     %....
  61.     %....
  62.     %....
  63.     wombat
  64.     xylophone
  65.      &p&d2&nzebra   .i
  66.  
  67. .rh1,78
  68.  
  69. Figure 4.1: Cursor Location -- <%END%> BOTTOM and <%HOME%> TOP .jc
  70. .i5
  71. &p&d1&nCursor TOP -- <%HOME%>
  72. &p&d2&nCursor BOTTOM -- <%END%>
  73. .i
  74.  
  75.  
  76. .st3,12,1
  77. &dReplace:%%%<%F1%>
  78. .st3,11,1
  79.  
  80.      The REPLACE function searches for occurrences of a word or phrase, called
  81. a "string," and replaces  that "string" with any other string that you specify.
  82.  
  83. Simply press <%F1%> and the computer responds on the command line at the bottom
  84. of the screen:
  85.  
  86. .t10 Search:
  87.  
  88.  
  89. You respond by typing in the word or phrase you want to replace.  For example
  90.  
  91. %%Search: airplane  %%%%<%RETURN%>
  92.  
  93. .t10 Galahad responds with
  94.  
  95. %%Replace:
  96.  
  97.  
  98. You type in the word or phrase you want to replace "airplane" with
  99.  
  100. %%Replace:  Boeing 747  %%%%<%RETURN%>
  101.  
  102.  
  103. .t10 Galahad moves to the first occurrence of the string and responds with
  104.  
  105. %%Yes, No, Change every match, Quit replace?
  106.  
  107.  
  108.      If you enter Y for Yes, Galahad replaces the "search" string (here
  109. "airplane") with the "replace" value (here "Boeing 747") that you typed in, and
  110. moves to the next occurrence of the "search" string.
  111.  
  112.      If you enter N for No, Galahad leaves the "search" string as it is and
  113. moves to the next occurrence.
  114.  
  115.      If you enter C for "Change every match," Galahad replaces every occurrence
  116. of the "search" string with the "replace" string.
  117.  
  118.      If you enter Q for "Quit" the search is terminated.
  119.  
  120.  
  121.  
  122.      The next time you use the search functions F1 through F4, the computer
  123. will remember the last value that you entered.  Thus, in our example, the
  124. computer will say:
  125.  
  126.  
  127. .t30 Search [Airplane]:
  128.  
  129.  
  130. Type in a new string to search for.
  131.  
  132.  
  133.  
  134.  
  135. .st3,12,1
  136. &dCenter:%%%<%SHIFT%>%<%F1%>
  137. .st3,11,1
  138.      Often it is convenient to have the line you are working on in the middle
  139. of the screen.  To place it there, put the cursor on the line and press
  140. <%SHIFT%>%<%F1%>.  This allows you to see the lines directly above and below
  141. the one that you are editing.
  142.  
  143.  
  144.  
  145. .st3,12,1
  146. &dFormat:%%%<%SHIFT%>%<%F2%>
  147. .st3,11,1
  148.      The format function formats a paragraph in the edit mode by taking out all
  149. the half lines from a paragraph of text.  It can be used to make the text you
  150. are editing have a more uniform appearance.
  151. .sto3,11,1
  152. It is actually required to have any given paragraph completely formatted
  153. (filled out).  The fact that a paragraph is a single unit of text is how
  154. Galahad is able to know that it should print a uniform paragraph.
  155. .st3,11,1
  156.      To use this function, simply place the cursor somewhere in the paragraph
  157. and press <%SHIFT%> <%F2%>.  Any text falling between blank lines or indented
  158. lines will be arranged in paragraph form (See Figure 4.2)
  159.  
  160. .g
  161. .rh1,78
  162. .a ll=75 js=n
  163. .i2
  164. Before Format:
  165.  
  166. .i5
  167.      The coals were reddening.
  168.  
  169.      Another slice of bread and butter:
  170. three, four:  right. She didn't like
  171. her plate full.  Right.  He turned from
  172. the tray, lifted the kettle off the
  173. hob and set it sideways on the fire.  It sat there, dull and squat, its spout
  174. stuck out.
  175. Cup of tea soon.
  176. Good. Mouth dry.
  177.  
  178.      The cat walked stiffly round a leg of the table with tail on high.
  179.  
  180. .i
  181.  
  182. After Format:
  183.  
  184. .I3
  185.      The coals were reddening.
  186.  
  187.      Another slice of bread and butter: three, four:  right. She didn't like .b
  188. her plate full.  Right.  He turned from the tray, lifted the kettle off the hob
  189. .b and set it sideways on the fire.  It sat there, dull and squat, its spout
  190. stuck .b out.  Cup of tea soon.  Good. Mouth dry. .b
  191.  
  192.      The cat walked stiffly round a leg of the table with tail on high.
  193. .a ll=d js=y; .i
  194. .rh1,78
  195.  
  196. Figure 4.2:  Before and After Format -- <%SHIFT%> <%F2%>  .JC
  197.  
  198.  
  199. .st3,12,1
  200. &dSearch%Previous:%%%<%F2%>
  201. .st3,11,1
  202.      This function moves the cursor up the file to the previous occurrence of a
  203. given string.  For instance, suppose you were about to use the word "coals" in
  204. a file and wanted to see where you had used it above.  The Search Previous
  205. function, <%F2%>, will move the cursor up the file to your last use of "coals."
  206. Repeated use of <%F2%> will move the cursor up the file through use of "coals."
  207.  
  208.  
  209.      When you press <%F2%> the computer responds
  210.  
  211. .t20 Next []:
  212.  
  213.  
  214. Type in the string you are looking for.  Press <%RETURN%>
  215.  
  216.  
  217. Galahad starts from the line the cursor is on and searches for the last
  218. occurrence of the string.  It moves the cursor to the first character of that
  219. string.  Press <%F2%> <%RETURN%> repeatedly to move up through all occurrences
  220. the string.
  221.  
  222.      If the computer fails to find a next occurrence of the string, it displays
  223. the message "SSSSS not found," where SSSSS is the string you entered.  Once you
  224. have used the <%F1%> through <%F4%> functions on a text, the string searched
  225. will remain to be searched again until you enter a new string.
  226.  
  227. .sto3,11,1
  228. NOTE:  In searching for a string, the computer distinguishes among upper case,
  229. lower case, and blanks, so be precise in typing in the string that you want
  230. searched.
  231.  
  232.  
  233.  
  234. .st3,12,1
  235. &dSearch%Next%%%<%F3%>
  236. .st3,11,1
  237.      This function moves the cursor from the line it is on down to the next
  238. occurrence of the word you search for.
  239.  
  240.  
  241.      When you press <%F3%> the computer responds
  242.  
  243. .t20 Next []:
  244.  
  245.  
  246. Type in the string you are looking for.  Press <%RETURN%>
  247.  
  248.  
  249. Galahad starts from the line the cursor is on and searches down through the
  250. text for the next occurrence of the string you typed in.  It moves the cursor
  251. to the first character of that string.
  252.  
  253.      If the computer fails to find a next occurrence of the string, it displays
  254. the message "SSSSS not found," where SSSSS is the string you entered.  Once you
  255. have used the <%F1%> through <%F4%> functions on a text, the string searched
  256. will remain to be searched again until you enter a new string.  When you press
  257. <%F3%> you will see something like
  258.  
  259.  
  260. .t20 Next [last string entered]:
  261.  
  262.  
  263. At this point you can either press <%RETURN%> to search again for "last string
  264. entered" or enter a new string.
  265. .g
  266. .st3,12,1
  267. &dSearch%Top:%%%<%F4%>
  268. .st3,11,1
  269.      The <%F4%> function works in the same way as Search Next, except that the
  270. search begins at the top of the file and moves the cursor to the first
  271. occurrence of the string that you want searched.
  272.  
  273.  
  274.  
  275. .st3,12,1
  276. &dShow%Blanks:%%%<%SHIFT%>%<%F7%>
  277. .st3,11,1
  278.      The <%SHIFT%> <%F7%> function shows any blank spaces existing to the right
  279. of the last character on a line.  This feature is sometimes useful when you are
  280. attempting to align columns in a table or indent a given number of spaces.
  281. <%SHIFT%> <%F7%> is a toggle; to eliminate the space display, simply press
  282. <%SHIFT%> <%F7%> again.  You will see two different marks -- one is for a
  283. 'space' and the other for a 'tab'.
  284.  
  285.  
  286.  
  287.  
  288. .st3,14,1
  289.                     &d4.3%DELETING%FROM%THE%TEXT .JR
  290.  
  291. .st3,12,1
  292. &dWord%Del%Left:%%%<%F5%>
  293. .st3,11,1 .x-5
  294.      This function deletes the word immediately to the left of the cursor (See
  295. Figure 4.3).   If the cursor is in the middle of a word, any letters to the
  296. left of the cursor will disappear.  A string of blanks immediately to the left
  297. of the cursor is treated as a word.  To delete a word and a blank, you must
  298. depress <%F5%> twice.  In Figure 4.3 (and the rest of the figures in this
  299. chapter) _&h] represents the cursor.
  300.  
  301. .rh1,78
  302.  
  303.   Before <%F5%>
  304.  
  305.        Delete all of_&h]&nthe extra words.
  306.                     &d1
  307.   After <%F5%> (once)
  308.  
  309.        Delete all _&h]&nthe extra words.
  310.                   &d2
  311.   After <%F5%> (twice)
  312.  
  313.        Delete all the extra words.
  314. .rh1,78
  315.  
  316. Figure 4.3:  Using <%F5%> to Delete a Word to the Left of the Cursor .jc
  317.  
  318. .i5
  319. &p&d1&nAt this cursor position, the word "of" will be deleted.
  320.  
  321. &p&d2&nAt this cursor position, one blank will be deleted.
  322. .i
  323.  
  324.  
  325.  
  326. .st3,12,1
  327. &dChar%Del:%%%<%F6%>%and%<%DEL%>
  328. .st3,11,1
  329.      This function deletes whatever character or space the cursor is sitting
  330. on.  When the deletion occurs, the line of text to the right of the cursor
  331. moves left one space.  The function key <%F6%> and the Special/Numeric key
  332. <%DEL%> both delete the character under the cursor.
  333.  
  334.  
  335.  
  336. .st3,12,1
  337. &dWord%Del%Right:%%<%F7%>
  338. .st3,11,1
  339.      This function removes the word or space to the immediate right of the
  340. cursor.  If the cursor is in the middle of a word, everything from the cursor
  341. to the end of the word will disappear.
  342.  
  343.  
  344.  
  345.  
  346. .st3,12,1
  347. &dErase%to%End%Line:%%%<%F8%>
  348. .st3,11,1
  349.      This function removes everything from the cursor to the end of the line,
  350. including the character at the cursor location (See Figure%4.4).
  351.  
  352. .rh1,78
  353. .i2
  354. .a ll=75
  355. Before <%F8%>
  356. .I6
  357.  
  358. Sometimes _&h]&nsentences just don't quite work out right the first time that
  359. .b0 you cast them, so it is best to just start over again.  This rule  of
  360. thumb%.%.%.
  361. .i2
  362.  
  363. After <%F8%>
  364. .i6
  365.  
  366. Sometimes _&h]&n
  367. you cast them, so it is best to just start over again.  This rule of
  368. thumb%.%.%.   .i
  369. .a ll=d
  370. .rh1,78
  371.  
  372. Figure 4.4:  Use of <%F8%>, Erase to End Line  .jc
  373. .g
  374. .st3,12,1
  375. &dDeleting%Lines:
  376. .t10 &d<%SHIFT%>%<%DEL%>
  377. .st3,11,1
  378. To delete an entire line of text press <%DEL% while holding down the <%SHIFT%>
  379. key (See Figure 4.5).  The <%DEL%> key is found with the Special/Numeric keys.
  380.  
  381. .rh1,78
  382. .i3
  383.   Before pressing <%SHIFT%> <%DEL%>
  384.  
  385.     &p&d1&n&d_S&nimilarly, Sancho, as regards my need of Dulcinea del Toboso,
  386.     she is worth as much to me as any highborn princess on this
  387.     earth.  Not all the poets who praised their ladies under names
  388.     of their own choosing actually had such mistresses.
  389.  
  390.  
  391.   After pressing <%SHIFT%> <%DEL%> (once)
  392.  
  393.  
  394.     &p&d2&n&d_s&nhe is worth as much to me as any highborn princess on this
  395.     earth.  Not all the poets who praised their ladies under names
  396.     of their own choosing actually had such mistresses.
  397.  
  398.  
  399.  
  400.   After pressing <%SHIFT%> <%DEL%> (twice)
  401.  
  402.     &d_e&narth.  Not all the poets who praised their ladies under names
  403.     of their own choosing actually had such mistresses.  .i
  404.  
  405. .rh1,78
  406.  
  407. Figure 4.5:  Deleting Lines  .jc
  408. .i5
  409. &p&d1&nPlace the cursor at the beginning of the line you wish to delete and
  410. hold down <%SHIFT%> while pressing <%DEL%>.
  411.  
  412. &p&d2&nThe line disappears and the next line moves up to take its place.  The
  413. entire text moves up.   .i
  414.  
  415.  
  416.  
  417. .st3,12,1
  418. &dDeleting%Blocks%of%Text:%%MARK%BLOCK%%%<%SHIFT%>%<%F9%>
  419. .st3,11,1
  420.      Use this function to delete entire blocks of text, including sentences,
  421. paragraphs, and entire pages.  Place the cursor on the first letter or space
  422. you wish to delete and press <%SHIFT%> <%F9%>.  This marks one end of the block
  423. you wish to delete.  Then move the cursor to a second location in your file and
  424. press <%SHIFT%> <%F9%> again.  All the text between the first and second
  425. locations will be deleted (See Figure%4.6).  To move the cursor from the first
  426. to the second location you can use the arrows and the cursor movement keys,
  427. such as <%HOME%>, <%F3%>, and <%F4%>.
  428.  
  429. .rh1,78
  430.  
  431. .i2 Before <%SHIFT%> <%F9%>    .i6
  432. .a ll=73
  433.  
  434.      It is a truth universally acknowledged, that a single man in possession of
  435. a good fortune must be in want of a wife.  &d1_&h]&nHowever little known the
  436. feelings or views of such a man may be on his first entering a neighborhood,
  437. this truth is so well fixed in the minds of the surrounding families, that he
  438. is considered as the rightful property of some one or other of their daughters.
  439. .i2
  440.  
  441. After first <%SHIFT%> <%F9%>   .I6
  442.  
  443. First mark
  444.  
  445.      It is a truth universally acknowledged, that a single man in possession of
  446. a good fortune must be in want of a wife.  &d2_&h]&nHowever little known the
  447. feelings or views of such a man may be on his first entering a neighborhood,
  448. this truth is so well fixed in the minds of the surrounding families, that he
  449. is considered as the rightful property of some one or other of their daughters.
  450. _&h]&n&b&d2  .I2
  451.  
  452.  
  453. After second <%SHIFT%> <%F9%>
  454.  .i6
  455.  
  456.      It is a truth universally acknowledged, that a single man in possession of
  457. a good fortune must be in want of a wife. _&h]&n&b&d3  .i
  458.  
  459. .a ll=d
  460. .rh1,78
  461.  
  462. Figure 4.6  Deleting a Block of Text  .jc
  463. .i5
  464.  
  465.  
  466. &p&d1&nPlace the cursor at the beginning of the block to be deleted.
  467.  
  468. &p&d2&nThe beginning of the block is indicated by a mark.  Move the cursor to
  469. the end of the block that you wish to delete.
  470.  
  471. &p&d3&nAfter you press <%SHIFT%> <%F9%> a second time, all the text between the
  472. two marks will be deleted.
  473. .i
  474. .g
  475. .st3,14,1
  476.                     &d4.4%WINDOWS  .jr
  477. .st3,11,1 .x-5
  478.  
  479.  
  480.  
  481.  
  482.      Chapter Three explains the use of windows.  This section of Chapter Four
  483. simply reviews the function keys used with windows.
  484.  
  485.  
  486.  
  487. .st3,12,1
  488. &dOne%Window--TwoWindows:
  489. .t10 &d<%SHIFT%>%<%F3%>%and%<%SHIFT%>%<%F4%>
  490. .st3,11,1
  491.      To create two windows press <%SHIFT%>%<%F4%>.  If only one file is loaded
  492. in the load buffer then the same file will appear in both windows.  If more
  493. than one file is in the load buffer, then use <%SHIFT%>%<%BACKSPACE%> to change
  494. the file in either window.
  495.  
  496.      To return to the single window moved press <%SHIFT%>%<%F3%>.
  497.  
  498.  
  499.  
  500.  
  501. .st3,12,1
  502. &dMoving%Between%Windows:%%%<%SHIFT%>%<%F5%>
  503. .st3,11,1
  504.      When the screen is in the two window mode, you can move the cursor from
  505. the window it is in to the other window by pressing <%SHIFT%>%<%F5%>.  To
  506. return to the original window press <%SHIFT%>%<%F5%> again.  When the cursor
  507. appears in the window, that window becomes active.  This means that all Galahad
  508. editing and command mode functions can be performed on the file displayed in
  509. that window.
  510.  
  511.  
  512.  
  513.  
  514. .st3,12,1
  515. &dMaking%the%Window%Larger%and%Smaller:%%%<%SHIFT%>%<%F6%>
  516. .st3,11,1
  517.      When the screen is in the two window mode you can make a window larger
  518. (add more screen lines) by pressing <%SHIFT%>%<%F6%>.
  519.  
  520.  
  521.      As one window grows the other becomes smaller.  Therefore, you can make
  522. window smaller by
  523. .i5
  524. .u3 1. .t5 Pressing <%SHIFT%>%<%F5%> to move to the other window and then
  525.  
  526. .u3 2. .t5 Pressing <%SHIFT%>%<%F6%> to make the other window grow.
  527. .i
  528.  
  529.  
  530.  
  531.  
  532. .st3,14,1
  533.                     &d4.5%ALTERING%THE%TEXT .JR
  534.  
  535.  
  536. .st3,12,1
  537. &dMoving%Blocks%of%Text:
  538. .t10 &d<%SHIFT%>%<%F9%>%and%<%SHIFT%>%<F10> .B2
  539. .st3,11,1
  540.      In the previous section we saw how to delete an entire block of text by
  541. using <%SHIFT%> <%F9%>.  Text deleted in this way is held in a temporary
  542. buffer, until the <%SHIFT%> <%F9%> function is invoked again.  This means that
  543. anything deleted can be put back into a file as long as <%SHIFT%> <%F9%> has
  544. not been reused nor the Galahad program restarted.  To put the buffer contents
  545. back into a file simply place the cursor where you want the contents to be
  546. placed and press <%SHIFT%> <F10> (See Figure 4.7).
  547.  
  548.  
  549. .rh1,78 .i2
  550. .a ll=75
  551. Before deleting middle sentence with <%SHIFT%> <%F9%>: .i5
  552.  
  553.      He has refused his assent to Laws, the most wholesome and necessary
  554. for the public good.
  555.      He has refused to pass other Laws for the accommodation of large
  556. districts of people%.%.%.%.
  557.      He has forbidden his Governors to pass laws of immediate and pressing
  558. importance%.%.%.%.   .i2
  559.  
  560.  
  561. After deleting middle sentence with <%SHIFT%> <%F9%>:
  562.  .i5
  563.      He has refused his assent to Laws, the most wholesome and necessary
  564. for the public good.
  565.      He has forbidden his Governors to pass laws of immediate and pressing
  566. importance%.%.%.%.    .i2
  567.  
  568.  
  569. After inserting middle sentence with <%SHIFT%> <F10>:  .i5
  570.  
  571.      He has refused his assent to Laws, the most wholesome and necessary
  572. for the public good.
  573.  
  574.       He has forbidden his Governors to pass laws of immediate and pressing
  575. importance%.%.%.%.
  576.      He has refused to pass other Laws for the accommodation of large
  577. districts of people%.%.%.%.   .i
  578. .a ll=d
  579. .rh1,78
  580.  
  581. Figure 4.7:  Moving a Block of Text  .jc
  582. .g
  583. .std3,12,1
  584. PROCEDURE FOR MOVING BLOCKS OF TEXT .JC
  585. .st3,11,1
  586. .i7
  587.  
  588. .u3 1. Move the cursor to the beginning of the block of text and press
  589. <%SHIFT%> <%F9%>.  (Galahad will put a little symbol in your text there, and
  590. say at the top of the screen "First mark.").
  591.  
  592. .u3 2. Move the cursor to the end of the text block and press SHIFT <%F9%>
  593. again.  The entire block will disappear from the screen.
  594.  
  595. .u3 3. Move the cursor elsewhere and insert the text with <%SHIFT%> <%F10%>,
  596. INSERT BLOCK.  .i
  597.  
  598.  
  599.  
  600. .st3,12,1
  601. &dTransposing:%%EXCHANGE%CHAR:%%%<%F9%>
  602. .st3,11,1
  603.      This function is handy for correcting transposition errors, which are
  604. commonly made during typing.  To use this feature place the cursor on a
  605. character.  Press <%F9%> and the character will be exchanged with the character
  606. to its immediate right (See Figure 4.8).
  607.  
  608.  
  609. .rh1,78
  610. .i2
  611. Before <%F9%>  .b2 .i6
  612.  
  613.                     &d1
  614.     The tribes sent th&d_i&ner cheifs. .b2 .i2
  615.  
  616. After <%F9%>  .b2 .i7
  617.                    &d2
  618.     The tribes sent th&d_e&nir cheifs. .b2  .i2
  619.  
  620. Before <%F9%> .b2 .i7
  621.  
  622.     The tribes sent their ch&d_e&nifs. .b2 .i2
  623.  
  624. After <%F9%> .b2 .i7
  625.  
  626.     The tribes sent their ch&d_i&nefs.  .i
  627.  
  628. .rh1,78
  629.  
  630. Figure 4.8: Using <%F9%> to Exchange Characters  .jc
  631.  
  632. .i5
  633. &p&d1&nPlace the cursor on the first letter to be transposed.
  634.  
  635. &p&d2&nThe cursor keeps its original screen position, but the letter under it
  636. is changed.  .i
  637.  
  638.  
  639.  
  640.  
  641. .st3,12,1
  642. &dCHANGE%CASE:%%%<%F10%>
  643. .st3,11,1
  644.      This function changes the character beneath the cursor to the opposite
  645. case (upper or lower).  If you hold down <%F10%>, it will repeat, moving to the
  646. right (See Figure 4.9).
  647.  
  648. .rh1,78
  649. .i2
  650. Before <%F10%>:
  651.                                                    &d1
  652.     Common Business Oriented Language is called &d_c&nobol.
  653.  
  654.  
  655. After <%F10%> (once):
  656.                                                     &d2
  657.     Common Business Oriented Language is called C&d_o&nbol.
  658.  
  659.  
  660. After <%F10%> (twice):
  661.  
  662.     Common Business Oriented Language is called CO&d_b&nol.
  663.  
  664.  
  665. After <%F10%> (five times):
  666.  
  667.     Common Business Oriented Language is called COBOL._&h]   .i
  668.  
  669. .rh1,78
  670.  
  671. Figure 4.9:  Changing Case  .jc
  672.  
  673. .i5
  674. &p&d1&nPlace the cursor on the letter to be changed and press <%F10%>.
  675.  
  676. &p&d2&nAfter the case has been changed the cursor moves to the right one
  677. letter.
  678. .i
  679. .sto3,11,1
  680. NOTE:  Use the same procedure to change upper case back to lower.
  681.  
  682.  
  683. .n6
  684. .st3,12,1
  685. &dUN-DO%EDIT:%%%<%ALT%>%<%F10%>
  686. .st3,11,1
  687.      If you make a mistake while using keys <%F5%>, <%F6%>, <%F7%>, <%F8%>,
  688. <%F9%>, and <%F10%> to edit a single line of text, then  you can restore your
  689. original text simply by pressing <%ALT%>%<%F10%>.  This feature works only
  690. while the cursor remains on the line that you are editing.  When you move to
  691. another line then the UN-DO EDIT function is reset for the new line.   If you
  692. change several things, all on one line and then, without moving the cursor to a
  693. new line, press <%ALT%>%<%F10%>, all the changes you just made to the line will
  694. be undone simultaneously.
  695.  
  696. .sto3,11,1
  697. NOTE:  If you use <%ALT%>%<%F10%> when entering a line of text for the first
  698. time, then you will eliminate the entire line that you just entered.
  699.  
  700.  
  701.  
  702.  
  703.  
  704. .st3,14,1
  705.                 &d4.6%SPECIAL%PRINTING%CHARACTERS .JR
  706. .st3,11,1 .x-5
  707.  
  708.  
  709.      Various printers offer special features that are activated by special
  710. control characters inserted  in a text.  A control character is generally
  711. considered to be a non-printing character -- one that does not display on the
  712. keyboard.  However, most printers respond to a mixture of control characters
  713. and ordinary keyboard character to print in special ways under special
  714. circumstances.  The <%CTRL%>%<%F10%> key enables you to enter these characters
  715. in such a way that your printer can interpret them.  Refer to the documentation
  716. that came with your printer to determine what special features it uses, and
  717. what control characters activate these features.
  718.  
  719.      Examples of control characters are special coding of all the capital
  720. letters on the keyboard.  This means that for each capital letter on the
  721. keyboard there is an associated control character.  If your printer book
  722. mentions Control A, it is discussing the character you get when you press the
  723. <%CTRL%> and <%A%> keys together.  To enter these characters into your text, to
  724. be sent to a printer, Galahad needs to know that you want Control A in the
  725. text, rather than have Galahad act on the <%CTRL%> <%A%>.
  726.  
  727.  
  728.  
  729. .st3,12,1
  730. &dInserting%Special%Printing%Characters%%%<%CTRL%>%<%F10%>
  731. .st3,11,1
  732.  
  733.      To enter special print characters into your text use the following:
  734.  
  735. .st3,12,1
  736.          PROCEDURE FOR ENTERING CONTROL CHARACTERS .jc
  737. .st3,11,1
  738. .i10
  739. .u3 1. .t10 Move the cursor to desired position for character.
  740. .u3 2. .t10 Press <%SHIFT%> <%F10%>.
  741. .u3 3. .t10 Enter the desired special character.
  742. .i
  743.  
  744. EXAMPLE: Shadow Printing on a Juki Printer
  745.  
  746.      To give just one instance of the use of a special character, let's
  747. consider the Juki printer's shadow printing capability.  Shadow printing is a
  748. fancier way of achieving boldface print.  In shadow printing the Juki prints a
  749. character and then backs up to print it again, shifted just 1/120" the right of
  750. the original.
  751.  
  752.      To do this for the Juki you must enter <%ESC%> <%W%> into your text.
  753. Everything following these characters will be printed in shadow print in until
  754. the <%ESC%> <=&> is encountered.  The <%ESC%> <=&> sequence ends the shadow
  755. print (See Figure 4.10).  (<%ESC%> is a very much used control character so it
  756. has its own key -- <%ESC%> is actually <%CTRL%> <%[%> (.
  757.  
  758. .rh1,78
  759.  
  760.  
  761.  
  762. %%In Edit Mode:
  763.  
  764.     Watch out for the ESCW CAUTION ESC=& sign.
  765.  
  766.  
  767. %%Printed on a Juki:
  768.  
  769.     Watch out for the &dCAUTION sign.
  770.  
  771. .rh1,78
  772.  
  773. Figure 4.11: Shadow Print with and with INSERT CHAR (Juki Printer)  .jc
  774.  
  775. .sto3,11,1
  776. NOTE: For more information on escape codes see the appropriate places in your
  777. printer manual.
  778.  
  779.  
  780.  
  781.  
  782.  
  783. .st3,14,1
  784.             &d4.7%INSERTING%TEXT%IN%THE%INSERT%MODE  .jr
  785. .st3,11,1 .x-5
  786.  
  787.      With Galahad you can insert text anywhere, simply by moving the cursor to
  788. the place where you want the insertion made and typing in your new text.  As
  789. you type, your old text moves ahead making room for new text.  In this section
  790. we will see how to make insertions in another way, one that allows you to write
  791. over old text.  In fact, some word processors always use this format of writing
  792. over any text that appears to the right of the cursor.  If you prefer such a
  793. procedure you can convert Galahad to it simply by pressing the <%INS%> key.
  794. .n6
  795. .st3,12,1
  796. &dThe%Replace%Mode%%%<%INS%>
  797. .st3,11,1
  798.      By pressing the <%INS%> key, you can change Galahad from a word processor
  799. which allows you to insert text anywhere to one which writes over existing text
  800. (See Figure 4.11).  This REPLACE feature is especially useful for replacing
  801. lines that require major revision.  Once you have completed such a revision,
  802. you can restore the INSERT mode by again pressing <%INS%>, which acts as a
  803. two-way (toggle) switch.   You can tell you are in the REPLACE mode by noting
  804. the RC in the lower right of the screen.  When in the INSERT mode the RC is not
  805. shown.
  806.  
  807. .rh1,78
  808.  
  809.  
  810.   Lines before editing:
  811.  
  812.          It is plain those perceptions are produced in us by interior&p&d1
  813. effects infecting our noses%.%.%.%.
  814.  
  815.  
  816.   Lines after editing:
  817.  
  818.          It is plain those perceptions are produced in us by exterior&p&d2
  819. causes affecting our senses%.%.%.%.
  820.  
  821. .rh1,78
  822.  
  823. Figure 4.11:  Using the REPLACE Function to Write Over Words  .jc
  824.  
  825. .i5
  826.  
  827. &p&d1&nOur writer, John Locke, wishes to replace the words "interior effects
  828. infecting our noses" with the words "exterior causes affecting our senses." He
  829. simply moves the cursor over the "i" of "infecting," presses <%INS%>, and
  830. writes the replacement phrase over the old text.
  831.  
  832. &p&d2&nWhen he is through, the writer can again press <%INS%> to return to the
  833. INSERT mode.
  834. .i
  835.  
  836.  
  837. .st3,12,1
  838. &dInserting%Lines:%%%<%SHIFT%>%<%INS%>
  839. .st3,11,1
  840. Press the <%SHIFT%>%<%INS%> key to create a new line between two lines of text
  841. (Figure 4.12).  (This function is frequently useful to users who like to edit
  842. in the REPLACE mode.)
  843. .g
  844. .rh1,78
  845.  
  846. Before pressing <%SHIFT%>%<%INS%>
  847. .i7
  848.     Similarly, Sancho, as regards my need of Dulcinea del Toboso,
  849.     she is worth as much to me as any highborn princess on this
  850.     earth.  Not all the poets who praised their ladies under names
  851.     of their own choosing actually had such mistresses.
  852. .i
  853.  
  854. After pressing <%SHIFT%>%<%INS%> (once)
  855. .i7
  856.     Similarly, Sancho, as regards my need of Dulcinea del Toboso,
  857.     she is worth as much to me as any highborn princess on this
  858.  
  859.     earth.  Not all the poets who praised their ladies under names
  860.     of their own choosing actually had such mistresses.
  861. .i
  862.  
  863. After pressing <%SHIFT%>%<%INS%> (twice)
  864.  
  865. .i7
  866.     Similarly, Sancho, as regards my need of Dulcinea del Toboso,
  867.     she is worth as much to me as any highborn princess on this
  868.  
  869.  
  870.     earth.  Not all the poets who praised their ladies under names
  871.     of their own choosing actually had such mistresses.
  872. .i
  873. .rh1,78
  874.  
  875. Figure 4.12:  Inserting Lines.  .jc
  876. .i5
  877.  
  878. &p&d1&nPlace the cursor anywhere on a line and press <%SHIFT%>%<%INS%>.
  879.  
  880. &p&d2&nThe text will move down opening up one blank line.  The cursor will be
  881. moved to the beginning of the line.
  882.  
  883. &p&d3&nPress <%SHIFT%>%<%INS%> again and the text moves down a second line.
  884. .i
  885.  
  886.  
  887. .st3,14,1
  888.                 &d4.8%NO-SPLIT%MODE  .jr
  889. .st3,11,1 .x-5
  890.  
  891.      Frequently, Galahad is used as an editor for writing programs in computer
  892. languages such as FORTRAN and PASCAL.  In these languages, it is sometimes
  893. necessary to extend the length of your line beyond the 80 characters shown on
  894. the screen.  Ordinarily, Galahad splits long lines; this occurs whenever the
  895. cursor returns automatically to start a new line (without the use of the RETURN
  896. key).  This automatic return (sometimes called wrap-around) can be turned off
  897. with the <%SHIFT%>%<%F8%> key.  You probably will not want to use this key for
  898. word processing.
  899.  
  900.  
  901. .st3,12,1
  902. &dTurning%Off%the%Wrap-Around%Feature%%%<%SHIFT%>%<%F8%>
  903. .sto3,11,1
  904.  
  905. NOTE:  Wrap-around is necessary for ordinary word processing.
  906. .st3,11,1
  907.  
  908.      To enter more than 80 characters on a line, press <%SHIFT%>%<%F8%>,
  909. SPLIT/NO-SPLIT.  This will allow you to enter as many as 64K characters on one
  910. line.  The line can be viewed in the edit mode as the screen will scroll
  911. horizontally as you move the cursor.  To restore  the wrap-around (automatic
  912. return) mode, press <%SHIFT%>%<%F8%> again; it acts as a 2-way (toggle) switch.
  913.  
  914.      When in NO-SPLIT mode, Galahad displays the letters NS at the lower right
  915. of the screen.  When in SPLIT mode (wrap-around), no NS message is displayed.
  916.  
  917. .rh1,78
  918.  
  919. .rbb6,50
  920. .i13
  921. PRINT, 'THIS FORTRAN LINE EXCEEDS%.%.%.%EIGHTY CHARACTERS'
  922. .u2 C THIS IS A SAMPLE
  923. READ *, VAL1
  924. READ *, VAL2
  925. DIST == VAL1 * VAL2
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932. .reb6,50
  933. .i
  934. .rh1,78
  935.  
  936. Figure 4.13:  A Line of FORTRAN in NO-SPLIT  .jc
  937.  
  938. .sto3,11,1
  939. NOTE:  You will find the Shifted Right and Left Arrows helpful to get to the
  940. beginning and end of long lines fast.
  941. .g
  942. .st3,12,1
  943. &dReview%4.1
  944. .st3,11,1
  945.  
  946.      Review the keys and commands that you learned in this chapter.
  947.  
  948. .t2,19,40
  949. The function keys:
  950.  
  951. .t  _Command  .t21 _Key .t44 _Comment
  952.  
  953. .t MoveToBottom .t <%END%> .t Moves cursor to bottom of file
  954.  
  955. .t MoveToTop .t <%HOME%> .t Moves cursor to top of file
  956.  
  957. .t ReplaceQuery .t <%F1%>  .t Searches string; replaces with new
  958.  .t .t .t  string
  959.  
  960. .t Center .t <%SHIFT>%<%F1%> .t Puts cursor line at center of screen
  961.  .t .t .t or screen window
  962.  
  963. .t SearchForPrev .t <%F2%> .t Searches up through file for last
  964.  .t .t .t previous use of a string
  965.  
  966. .t FormatPara .t <SHIFT><%F2%> .t Formats paragraph from indent or
  967.  .t .t .t space to indent or space
  968.  
  969. .t SearchForNext .t <%F3%> .t Searches for next occurrence of a
  970.  .t .t .t string--starts at cursor position
  971.  
  972. .t SearchFromTop .t <%F4%> .t Search for a string from top of file
  973.  
  974. .t DelWordLeft .t <%F5%> .t Deletes the word to left of cursor
  975.  
  976. .t DeleteUnder .t <%F6%> .t Deletes the letter under the cursor
  977.  .t .t <%DEL%>
  978.  
  979. .t DelWordRight .t <%F7%> .t Deletes the word to right of cursor
  980.  
  981. .t ToggleShowBlanks .t <SHIFT><%F7%> .t Shows any spaces to right of last
  982.  .t .t .t character on a line
  983.  
  984. .t DelToEnd .t <%F8%> .t Deletes from cursor to end of line
  985.  
  986. .t TransPoseChar .t <%F9%> .t Exchanges character with
  987.  .t .t .t next character to the right
  988.  
  989. .t ChangeCase .t <%F10%> .t Changes letter case: capitals to
  990.  .t .t .t lower case and lower to capitals
  991.  
  992. .t SelectText .t <SHIFT><%F9%> .t Deletes a block of text that remains
  993.  .t .t .t in a buffer until next <%F9%> use
  994.  
  995. .t InsertText .t <SHIFT><%F10%> .t Inserts <%F9%> buffer text at cursor
  996.  .t .t .t location
  997.  
  998. .t  _Command  .t21 _Key .t44 _Comment
  999.  
  1000. .t UndoChange .t <%F10%> .t Restores line to condition before
  1001.  .t .t .t editing
  1002.  
  1003. .t InsertControl .t <CTRL><%F10%> .t Inserts control characters
  1004.  .t .t .t into text
  1005.  
  1006. .t ToggleSplit .t <%SHIFT%>%<%F8%> .t Changes from line split (wraparound)
  1007.  .t .t .t to full line for programming (toggle)
  1008.  
  1009. .t ToggleReplace .t <INS> .t Changes word processor to one which
  1010.  .t .t .t writes over letters -- Toggles back
  1011.  .t .t .t to one which pushes old text ahead
  1012.  
  1013. .t .t <SHIFT><INS> .t Inserts a blank line above the one
  1014.  .t .t .t the cursor is on
  1015.  
  1016.  
  1017. .t .t <SHIFT><DEL> .t Deletes from cursor to end of line;
  1018.  .t .t .t brings up next line
  1019.  
  1020.  
  1021. .t OneWindow .t <SHIFT><%F3%> .t Returns screen from two window to
  1022.  .t .t .t one window mode
  1023.  
  1024. .t TwoWindow .t <SHIFT><%F4%> .t Splits screen into two windows
  1025.  
  1026. .t OtherWindow .t <SHIFT><%F5%> .t Moves cursor from one wind to other
  1027.  
  1028. .t GrowWindow .t <SHIFT><%F6%> .t Causes window containing cursor to
  1029. .t .t .t grow one line at a time
  1030.