home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
- EDITOR 28Aug87 GmK
-
- The editor's primary purpose is to modify (edit) the contents of
- a Forth screen. It has a variety of functions available to
- accomplish that task. These functions can be divided into five
- main categories:
-
- a. Cursor Movement (Up, Down, Left, Right, Home, End, Tab,
- etc.)
- b. Character Modification (Insert, Delete, Type-over,
- Clear, etc.)
- c. Line Handling (Line Insert, Delete, Save, Restore,
- Clear, etc.)
- d. Screen Selection (Save, Undo, Abandon, Page-forward
- Page back, etc.)
- e. String Processing (Find, Display/list, Replace, etc.)
-
- A secondary purpose of the Editor is screen management. The
- functions available to aid in managing screens are:
-
- Insert, Delete, Move, Copy, Exchange, and Import.
-
- The final purpose of the Editor is to scan the contents of
- screens. The functions available include:
-
- Page-up/down, Go to first/last/selected screen, and
- Return to previous screen.
-
- The Editor may be entered in several ways, as described below.
-
- 1. Type: EDIT <enter>
-
- This will place the Editor in it's "screen management" mode. In
- this mode the Editor will read up to 60 contiguous screens from
- the current storage media and place them into a RAM buffer. The
- source and number of screens read will depend upon whether Forth
- is in the Direct-Block or the File-Access mode and, if in the
- File-Access mode whether a file is currently open. In any case
- the Editor will, if necessary, prompt for any input it requires.
-
- Once the screens are read into RAM, the Editor is ready to
- manipulate the RAM resident copies of the selected screens. A
- help message across the bottom of the CRT indicates the
- available screen-management functions. A Help screen is also
- available by pressing the F1 key. This screen explains the
- abbreviated Help messages and also indicates additional
- functions that are available from the Editor command line.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2. Type: n DISP <enter> (n is an optional screen number)
-
- This will place the Editor in the "scanning-mode". In this mode
- the Editor will bring into memory only screen n. Again, a Help
- message is displayed across the bottom of the CRT and the F1 key
- will cause a Help screen to be displayed.
-
- Why are there two different modes available? The EDIT mode is
- most useful when a contiguous set of up to 60 screens is being
- edited. This mode provides a full set of screen manipulation
- functions. Screens may be moved, copied, exchanged, inserted,
- deleted, and imported. However, in exchange for this powerful
- and flexible capability to manage screens, the screens must all
- be within a contiguous set of no more than 60 screens.
- (Applications requiring more than 60 screens can be sub-divided
- into sets of up to 60 screens.) The DISP mode allows complete
- random access to all of the screens within a file of more than
- 60 screens (or to all of the screens on the selected media if
- the Forth system is dealing with direct media access) but does
- not support the full set of screen manipulation functions. One
- would choose the EDIT mode to update and manipulate many of a
- contiguous set of up to 60 screens and would choose the DISP
- mode to access a single screen or any of a large number of
- widely separated screens.
-
- Both modes place the Editor in it's command state and display a
- selected screen. Another screen may be selected or the
- displayed screen may be edited. The screen editing functions
- available are the same for either the EDIT or the DISP mode.
-
- 3. Type: L <enter>
-
- This will return the Editor to the screen last edited. The
- Editor will be in the same mode (EDIT or DISP) last used.
-
- To edit a screen from the Editor command line, simply press the
- Home key. This will move the cursor from the command line into
- the displayed screen area and update the Help messages along the
- bottom of the CRT. (Pressing the F1 key will now display the
- editing Help screen instead of the command Help screen.) The
- usual cursor movement and character Insert/Delete functions will
- be available, as well as a set of three different, independent,
- non-exclusive screen-to-screen line copy functions.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Each of these line copy functions has it's own buffer in which
- to store captured lines and the contents of each of these
- buffers are maintained across editing sessions. Lines placed in
- a buffer will remain in the buffer until the Forth system is
- exited. The same buffer contents may be used across multiple
- editing sessions and between various files or media. The
- contents will only be lost if overwritten by the use of the
- Forth RAM-Disk, by leaving Forth, or by turning the computer
- power off. (Of course a crash will also wipe-out the contents of
- the buffers, but does Forth ever crash? Forget I asked!)
-
- The three line copy functions are:
-
- 1. Lines Copy:
-
- Lines are selected and copied from a screen to the copy buffer
- and may then be copied from the copy buffer to any selected
- screen. The copy remains in the copy buffer (until replaced by
- selecting another set of lines to use) and may be copied from
- the copy buffer to as many screens as desired. The lines may be
- copied anywhere on a screen that they will fit and will
- overwrite the existing lines on the target screen.
-
- 2. Lines Stack:
-
- Lines are either copied or moved (a move is a copy plus a
- delete) from a screen to the stack buffer. The captured lines
- may then be placed on a different screen (or elsewhere on the
- same screen). Moving the lines from the stack buffer to a
- screen will remove them from the stack buffer.
-
- 3. Lines Barrel
-
- There are 16 positions available, in the barrel buffer, which
- may be individually selected and copied to, from one or more
- screens. The contents of the barrel buffer may then be
- nondestructively copied, individually or collectively to any
- screen or set of screens. Lines may be stored and accessed in
- the barrel buffer in random order by rotating the barrel up or
- down before use.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Editing Commands
-
- Key EDIT (Command line) DISP (Command line)
-
- F1 Help Help
- F2 Undo Undo
- F3 Move a screen ---
- F4 Move multiple screens ---
- F5 Copy a screen Copy a screen
- F6 Copy multiple screens Copy multiple screens
- F7 Insert a blank screen Insert a blank screen *
- F8 Delete current screen Delete current screen *
- F9 Exchange a pair of screens Exchange screen pair
- F10 Import a screen Import a screen *
- * If accessing files
-
- (The remaining command line functions are the same in both the
- EDIT and the DISP modes.)
-
- PgUp Goto preceding screen
- PgDn Goto following screen
- -> Goto screen n
- <- Goto previous screen
- /\ Goto first screen
- \/ Goto last screen
-
- S or^Home Toggle auto-stamp (time/date/initials) mode
- N Change initials for time/date/initials stamp
-
- ^PgUp Select copy, barrel, or line stack buffer
-
- ^PgDn Extend file by one screen (if at last screen)
-
- R or Del Replace multiple occurrences of a string
- F or Ins Find a string
- G or L Goto next occurrence of a string
- H Highlight all occurrences of a string on the screen
- J or End Display or print all occurrences of a string
-
- C or <-- Compare two screens
-
- E or Esc Save the edit buffer and exit the Editor
- Q Quit (undo all and exit)
- W Window (to Forth window, return to Editor with L)
-
- U Change file
- A Change access method/interpret Forth word(s)
-
- D Directory
- I or Tab Index of screens
- P Print screens
-
- B Backtab Beeping on/off (toggle)
- X eXpert (toggle help line on/off)
-
- Home Edit the current screen
-
-
-
-
-
-
-
-
-
-
- Key Editing function (in screen)
-
- F1 Help
- F2 Undo all changes to current screen
-
- Cut Barrel Stack
-
- F3 --- Rotate barrel up Push/delete
- F4 --- Rotate barrel down Insert/pop
- F5 Select or save Copy to barrel Copy to stack
- F6 Copy to screen Copy from barrel Copy from stk
-
-
- F7 Insert line from cursor
- F8 Delete line from cursor
- F9 Clear to end of line (from cursor)
- F10 Clear to end of screen (- 4 characters) from cursor
-
- ^N Insert blank line at line cursor is on
- ^U Erase all character on line containing cursor
- ^Y Delete line cursor is on
- ^J Join words from next line to line cursor is on
-
- Home Cursor to home (top left corner of screen)
- End Cursor to end (bottom right corner - 4 characters)
- /\ or ^E Cursor up one line (to home if at top line)
- \/ or ^X Cursor down one line (to end if at bottom line)
- <- or ^S Cursor left one character (wrap at line beginning)
- -> or ^D Cursor right one character (wrap at line end)
- <-'or ^M Cursor down one line and to line beginning
-
- ^<- or ^A Cursor left one word (wrap at line beginning)
- ^-> or ^F Cursor right one word (wrap at line end)
-
- ->| or ^I Tab to next tab-stop (every 4 character positions)
- |<- or ^O Back-tab to previous tab-atop
-
- Ins or ^V Toggle between character-insert and type-over modes
- Del Delete character at cursor
- <-- or ^H Delete character to left (if Ins on, drag line)
-
- PgUp Save current screen and go to preceding screen
- PgDn Save current screen and go to following screen
- Esc Save current screen and exit to command line
- ^W Exit to command line
-
- ^PgUp Select cut, barrel, or line stack mode
-
- ^PgDn Extend file by one screen (if at last screen)
-
- ^Home Manual time/date/initial stamp current screen
-
- ^_ (Control-underline) Enter "Insert Control Char"
- mode (cursor will split to indicate mode).
- Allows inclusion of control characters in screen.
- Exit this mode by pressing the Ins key.