home *** CD-ROM | disk | FTP | other *** search
- .a lp=12,js=y,ct=n bo=51 te=12 to=90 pn=1 nm=1
- .st3,14,1
- &dChapter%Three:%%Working%with%Multiple%Files .jc
- &d[%Chapter%Three%] .HC
- .t36 3 - .zl
-
-
-
-
- &d3.1%MOVING%TEXT%BETWEEN%FILES .jr
-
-
- .st3,12,1
- &dUsing%Delete/Replace%to%Move%Text:
- .t10 &d<%SHIFT%>%<%F9%>%and%<%SHIFT%>%<%F10%>
- .st3,11,1
- Sometimes it is convenient to move material from one file to another. The
- <%SHIFT%> <%F9%> and <%SHIFT%> <%F10%> keys provide an easy way to do this.
-
- To remove a any amount of text from a file use <%SHIFT%> <%F9%>:
-
- .std3,12,1
- PROCEDURE FOR REMOVING TEXT .jc
- .st3,11,1
- .i10
- .u3 1. .t10 Place the cursor at the start of the text that you wish to remove
- .u3 2. .t10 Press <%SHIFT%> <%F9%>
- .u3 3. .t10 Place the cursor at the end of the text that you wish to remove
- .u3 4. .t10 Press<%SHIFT%> <%F9%> again
- .i
-
- The block of text between the first and second cursor positions will
- disappear from the screen. However, this block is saved in a buffer. To
- replace it anywhere in the file simply move the cursor to the desired location
- and press <%SHIFT%> <%F10%>. (See Chapter Four for an illustration of this
- procedure.)
-
- Text removed with <%SHIFT%>%<%F9%> remains in the text buffer to be
- inserted again and again. This is useful for passages that you wish to repeat.
- The text will remain in the buffer until you use <%SHIFT%> <%F9%> again, or
- until you exit Galahad. Even when you load a new file the text remains in the
- buffer. Therefore, you can move blocks of text between files as follows:
-
- .std3,12,1
- PROCEDURE FOR MOVING TEXT BETWEEN FILES .jc
- .st3,11,1
- .i10
- .u3 1. .t10 Load the file containing the text you wish to move
- .u3 2. .t10 Use <%SHIFT%> <%F9%> to remove the text, placing it in the buffer
- .u3 3. .t10 Load the second, "target," file&d*
- .u3 4. .t10 Use <%SHIFT%> <%F10%> to place the text in the target file
- .i5
-
- %%&d*&nIn step 3, it is usually best not to save your original file. In that
- way you won't be saving any changes you made in removing the text with
- <%SHIFT%> <%F9%>. The file on the disk will remain unchanged. .i
-
-
-
-
-
- .st3,14,1
- &d3.2%LOADING%MORE%THAN%ONE%FILE .JR
- .st3,11,1 .x-5
-
-
- In working with more than one file, it is awkward to save and load each
- time you want to move between files. Galahad allows you to load several files
- at once and move between them easily.
-
-
-
- .st3,12,1
- &dThe%LoadBuffer%Command:%%%%<%KP+>
- .st3,11,1
- In Chapter 1 you were told to load a file using the LOAD command or by
- pressing <%KP+%>. These instructions were not absolutely correct. There are
- two 'load' commands: %LOAD, and %LOADBUFFER. LOAD is assigned to <%CTRL%>
- <%F3%>, and LOADBUFFER is assigned to <%KP+%>.
-
- The LOAD command erases the text in the current buffer and then loads
- another file into that buffer. LOADBUFFER loads the file into a new buffer and
- does not destroy the text in your current buffer. So this is the preferred
- command. %(We didn't want to confuse you with details earlier).
-
- To load multiple files, you must use the LoadBuffer command. The <%KP+>
- invokes the LoadBuffer command. Use the following procedure:
-
- .std3,12,1
- PROCEDURE FOR LOADING MULTIPLE FILES .jc
- .st3,11,1
- 1. Enter the EDIT mode
- 2. Press <%KP+%>
- 3. Enter the name of a file that you wish to load
- 4. Press <RETURN>
- 5. Repeat procedure from line 2 until all files loaded
-
- .sto3,11,1
- NOTE: If you really want to cover up the current text with data from a new
- file, use the LOAD command (<%CTRL%> <%F3%>).
-
-
-
- .st3,12,1
- &dDisplaying%Files%in%the%File%Buffers:
- .t10 &d<%SHIFT%>%<%BACKSPACE%>
- .st3,11,1 .x-5
- Once you have loaded multiple files, you can move between them easily by
- holding down the <%SHIFT%> key and pressing <%BACKSPACE%>.
-
- Files are held in the file buffer in the order in which you entered them,
- and can be displayed sequentially. Suppose for instance that you load three
- files into into the buffer. Call them:
-
- Plato1
- Plato2
- Plato3
-
- If you are looking at Plato1, you can display Plato2 by pressing <%SHIFT%>
- <%BACKSPACE%>. Plato2 will appear immediately. To view Plato3 press <%SHIFT%>
- <%BACKSPACE%> again. And if you press <%SHIFT%> <%BACKSPACE%> again you will
- return to Plato1 again.
-
-
- You can remove a file from the file buffer simply by displaying it and
- using the ScratchText command, <%CTRL%> <%F6%>.
-
-
-
-
- .st3,14,1
- &d3.3%WINDOWS .JR
- .st3,12,1
-
-
- &dWindows:
- .t10 &d<%SHIFT%>%<%F4%>,%<%SHIFT%>%<%BACKSPACE%>%and%<%SHIFT%>%<%F5%>
- .st3,11,1
- Sometimes it is useful to look at two files at once. This can be done
- with Galahad's Window capability. To split the screen into two windows use the
- following:
-
- .std3,11,1
- PROCEDURE FOR CREATING TWO WINDOWS .jc
- .st3,11,1
- .i10
- .u3 1. .t10 Load two or more files into the file buffer
- .u3 2. .t10 While in Edit mode, press <%SHIFT%> <%F4%>
- .u3 3. .t10 Use <%SHIFT%> <%BACKSPACE%> to display the desired file in the top
- window
- .u3 4. .t10 Press <%SHIFT%> <%F5%> to move the cursor to the bottom window.
- .u3 5. .t10 Use <%SHIFT%> <%BACKSPACE%> to display the desired file in the
- bottom window.
- .i
-
- The <%SHIFT%> <%F5%> sequence will toggle the cursor between the top and bottom
- windows. Whichever window the cursor is in is the active file. When the
- window is active you can edit it, save it, load a new file, or any of the usual
- Galahad functions.
-
-
- For an example of windows consider the files Plato1, Plato2, and Plato3.
- I have saved these files so that the contents of Plato1 is the line, "This is
- Plato 1." Plato2 and Plato3 have corresponding messages.
-
- Now, suppose we enter the Edit mode and load each of these files into the
- file buffer. If the last file I loaded was Plato3 then the screen will appear
- as in Figure 3.1
- .g
- .rh1,78
-
- &d_T&nhis is Plato 3.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- C1 %% L1/2 %%% 1%
- .rh1,78
-
- Figure 3.1 The Screen After Loading Plato3 .jc
-
-
-
- Now by pressing <%SHIFT%> <%F4%>, we can create two windows as shown in
- Figure 3.2
-
-
-
- .rh1,78
- &d_T&nhis is Plato 3.
-
-
-
-
-
-
-
-
-
- .rh1,11 .t12 /=\ A:Plato3.GAL /=\ .rh33,45 .t46 =\/ A:Plato3.GAL =\/ .rh65,78
-
- This is Plato 3.
-
-
-
-
-
-
-
-
-
- C1 %% L1/2 %%% 1%
- .rh1,78
-
- Figure 3.2 The Two Window Screen: <%SHIFT%> <%F4%> .jc
-
-
-
-
- The line in the center splits the screen into two windows and the
- arrowheads in the center mean that the top window displays Plato3, while the
- bottom displays the same file. The cursor is in the top window, so you can use
- any of the Galahad functions with the file in this window.
-
-
- Use <%SHIFT%> <%BACKSPACE%> to change the file in the top window. You
- will not need to save the title each time you change it for another file in the
- buffer. Press <%SHIFT%> <%BACKSPACE%> once to display the file Plato1 as shown
- in Figure 3.2.
-
-
-
-
-
- .rh1,78
-
- &d_T&nhis is Plato 1.
-
-
-
-
-
-
-
-
- .rh1,11 .t12 /=\ A:Plato1.GAL /=\ .rh33,45 .t46 =\/ A:Plato3.GAL =\/ .rh65,78
-
- This is Plato 3.
-
-
-
-
-
-
-
-
- C1 %% L1/2 %%% 1%
- .rh1,78
-
- Figure 3.3 Windows Containing Different Files: <%SHIFT%> <%BACKSPACE%> .jc
-
-
- Notice that the center line now indicates that Plato1 is in the top
- window, and that Plato3 is in the bottom file.
-
-
- To move the cursor down making the bottom window active, simply press
- <%SHIFT%> <%F5%>.
-
-
-
-
-
- .st3,12,1
- &dMoving%Text%In%Two%Window%Mode:
- .st3,11,1
- When you are in the two window mode it is easy to move text from one file
- to the other. Use the following procedure:
-
- .std3,12,1
- PROCEDURE FOR MOVING TEXT BETWEEN FILES IN TWO WINDOW MODE .jc
- .st3,11,1
- .i10
- .u3 1. .t10 Load one file in each window.
- .u3 2. .t10 Use <%SHIFT%> <%F9%> to remove the text from one file.
- .u3 3. .t10 Press <%SHIFT%> <%F5%> to change windows.
- .u3 4. .t10 Use <%SHIFT%> <%F10%> to place the text in the second file.
- .i
-
-
-
-
- .st3,12,1
- &dMaking%Windows%Larger:%%%<%SHIFT%>%<%F6%>
- .st3,11,1
- If you are in the two window mode you can make a window larger use
- <%SHIFT%> <%F6%>. The window that the cursor is in will grow a line at a time.
- Because the screen is a constant size, one window can grow only at the expense
- on the other. If you wish to restore the size of the other window, move the
- cursor with <%SHIFT%> <%F5%> to change windows, and then use <%SHIFT%> <%F6%>.
-
-
-
-
-
-
- .st3,12,1
- &dReturning%to%the%Single%Window%Mode:
- .t10 &d<%SHIFT%>%<%F3%>
- .st3,11,1
- To return from the two window mode to the screen display of a single file,
- press <%SHIFT%> <%F3%>. If the cursor is in the top window, then the file that
- is in the top window will be displayed on the entire screen. If the cursor is
- in the bottom window, then the file that is in the bottom window will be
- displayed on the entire screen.
- .g
- .st3,12,1
- &dReview%3.1
- .st3,11,1
- Review the keys and commands that appeared in this chapter.
-
- .t3,18,41
- 1. To move text from one file to another use:
-
-
- .t4 _Command .t21 _Key .t45 _Comment
-
- .t SelectText .t <SHIFT><F9> .t Deletes a block of text
- .t Inserttext .t <SHIFT><F10> .t Inserts text at cursor
-
-
-
- 2. To load and edit multiple files use:
-
-
- .t4 _Command .t21 _Key .t45 _Comment
-
- .t LoadFile .t <ALT><F3> .t Loads a file into the current buffer
- .t LoadBuffer .t <KP+> .t Loads a file in a new buffer
- .t NextBuffer .t <SHIFT><BACKSPACE> .t Displays next file in file buffer; each
- .t .t .t NextBuffer displays buffers in circular fashion.
-
- .t ScratchText .t <CTRL><F6> .t Removes the file currently being
- .t .t .t displayed file from file buffer
-
-
-
-
- 3. To control Window mode use:
-
-
- .t4 _Command .t22 _Key .t45 _Comment
-
- .t OneWindow .t <SHIFT><F3> .t Returns to single window
- .t TwoWindow .t <SHIFT><F4> .t Creates two windows
- .t OtherWindow .t <SHIFT><F5> .t Moves cursor from current window to
- .t .t .t other window making it active
- .t GrowWindow .t <SHIFT><F6> .t Makes window larger a line at a time
- .g2