,ll 6.6
,cs 10
,pl 66
,lm 0.2,0.5
,pn 8
,ju
,hd
,ce
OmegaSoft 6809 Cross Screen Editor (V1.0)
,,
,ft

,ce 1
12-##
,,
,ce
OmegaSoft 6809 Cross Screen Editor (V1.0)

,ce
TABS

The default tab settings are defined by a string in the setup (.ps) file, see the installation section of this manual. The tab stops can be reset when you are in the command mode. There are two types of tabbing, repetitive and non-repetitive.

REPETITIVE

Syntax : TR <increment>                        con key : set tabs

Where increment is a decimal number that defines the multiplier to be used when setting tabs. For instance if you type in : TR 2 then you will get tabs at 0,2,4,6,8..., TR 5 will get you tabs at 0,5,10,15... . This mode is useful for Pascal and other structured languages.

NON-REPETITIVE

Syntax : TN column column .... column          con key : set tabs

Where column is a decimal number where each tab is to be placed. The columns must be separated by spaces. This mode can be used to space out assembly language fields if desired.

ADDING TABS

Syntax : TA                                    con key : set tabs

This command will add the location of the cursor to the tab list.

Note that the tabs will also affect where the cursor is placed when appending lines of text. The cursor will be positioned to the closest tab stop to the left that is no further right than the first character of the previous line.

TAB MARKERS

Syntax : T+ or T-                              con key : set tabs

If T+ is entered then lines will be displayed with tab markers at those tab positions up until the first non-blank character in a line. This is useful in structured languages to make sure matching symbols (such as begin ... end) are on the same tab position. T- will turn off this mode (default).

,ce
CHARACTER AND LINE DELETE

Individual characters on a line can be deleted by typing in a cntrl D (default, con key : delete one char). If the cursor is on the far right of the screen then by entering a cntrl D you will be effectively deleting the carriage return at the end of the line. This has the effect of merging the current line you are on with the following line. If the following line contains leading spaces then only the first space is kept. As an example, in the following pascal segment we wish to merge the "if k = 3" and "then s := false ;" into one line.
,pg
,ce
CHARACTER AND LINE DELETE

if k = 3
  then s := false ;

position the cursor to the far right of the screen :

if k = 3                                                        
  then s := false ;

and hit the cntrl D, the result will be :

if k = 3 then s := false ;                                      

Whole lines can be deleted by positioning the cursor to the line to be deleted and hitting a cntrl X (default, con key : delete one line).

A range of lines can be deleted by using the delete command.

Syntax : DE <expression>  or  DE <expression>,<expression>
                                           con key : delete lines

The first form will delete the line number given. The second form will delete a range of lines. There can be no spaces between the first expression, the comma, and the second expression. Note that the E following the key for delete lines must be entered (this is to avoid an accidental deletion of lines).

,ce
OVERWRITE

Over-writing allows you to change one or more characters without the necessity of deleting the character and then inserting the new character. There are two forms of overwrite, the first is single character overwrite. This is accomplished by positioning the cursor to the character to be changed, hitting the one "1" (default, con key : overwrite one) key in command mode and then typing in the new character. The second method is for multiple characters. Position the cursor to the first character to be changed, type "V" (default, con key : overwrite) in command mode, and then start typing the new characters. This mode is exited by typing any non-printable character or by running off the end of the current line.

,ce
MOVE AND COPY

Move Syntax : M <expression>  or  M <expression>,<expression>
                                             con key : move lines

Copy Syntax : C <expression>  or  C <expression>,<expression>
                                             con key : copy lines

The Move and Copy commands are identical except that in the copy command the source lines stay intact, in the move command the source lines are deleted. In either case a copy of the source lines are moved to the destination line range. The destination line range is defined to be immediately following the line where the cursor is positioned. In the first form of the syntax expression defines the line number of the source. In the second form the two expressions define a line number range for the source. There must be no spaces between the first expression, the comma, and the second expression.


,ce
TEXT SEARCHING

The find and replace commands allow you to search for a specific pattern of characters and to position the cursor there (find) or to change that pattern of characters to a new pattern (replace).

In either command you position the cursor to where you want to start searching, the search will continue to the end of the buffer and then start back at the top and continue until one line before where you started searching (circular buffer).

There is a flag that determines whether or not upper and lower case letters are equivalent when searching. The initial state of this flag is determined by the stack setup (.ps) file - see the installation section. The flag can be changed while you are in the editor by enter a "U" (default, con key : upper case map) key followed by a "+" if you want them equivalent or "-" if you don't want them equivalent.

Find syntax : F                                    con key : find

Replace syntax : R                              con key : replace

When you enter these commands you will be prompted on the bottom line by a "F>", enter the pattern to search for and a carriage return. If you entered the replace command then you will receive a "R>" prompt, enter the new pattern to replace the search pattern. Searching will now commence and the cursor will be positioned to the first occurrence of the search pattern. If there is no occurrence then the bell will sound and the message "search stopped" will be displayed indicating the completion of this command. At this point the operation differs between the find and replace commands.

In the find command you have 3 possible responses. If you enter a carriage return then the cursor will stay at the found pattern and the command will be exited. If you enter a space then it will continue the search - sounding the bell and exiting the command if no further occurrences are found. If you enter a "M" then it will set a flag that will allow it to recognize multiple occurrences of the pattern on the same line - else it will only recognize the first occurrence. Hitting the "M" simply sets the flag and does not move the cursor.

In the replace command you have 5 possible responses. Entering a carriage return will exit this command. Entering a space will move to the next occurance of the search patter. Entering a "R" will  replace the found pattern with the replacement pattern and continue on to the next occurrence. Entering a "M" will set the multiple occurrence flag as in the find command. Entering an "E" will signal the command to replace the found pattern with the replacement pattern in the rest of the buffer without further input from the user.

The character "?" may be used as a "don't care" character in the find and replace patterns. A "?" will match any character in the find pattern, and if used in the replace pattern will use whatever was in the find pattern in that location.
,pg

,ce
OPERATING SYSTEM COMMAND

Some versions of this editor allow you to pass a command line to the operating system and even to compile or assemble directly from the edit buffer, returning back the locations of errors to the editor for automatic cursor positioning.

If you have one of these versions (see chapter 2 for specifics) then there are one or two additional keys :

Syntax : $<command line>                    con key : command line

In addition, if your version allows compiling or assembling from the edit buffer then there is a key that moves the cursor to the next line that had an error detected. This is normally control N, con key is "move to next error"
