Command Line

Lastly, there are a number of commands which require typed input. Hitting Esc places the cursor at the beginning of the command line which is on the last row and ordinarily displays some status information. Alternatively a text entry dialog can be opened using Ctrl M or the ``Cmd'' menu item. Once on the command line text can be input for the following functions:



                        

Command Line Operations (requires
text input so terminate line with a
return)

Esc goto or leave command line

Change current line
number goto line number n
+number down n lines
-number up n lines

Change current column offset
@number start at column n
@+number scroll left n columns
@-number scroll right n columns

Search and Replace.
find string str (/ actually any punct)
/str[/-bclrw] return
replace str1 with str2
c/str1/str2[/-bclrw] return

The optional search suffixes are:
/- search up (down is default)
/b search marked block only
/c ignore case
/l loop through all files
/r interpret as regular expression
/w match whole words only

Add other files to ring
e name1,name2,...[-r]
The optional edit suffixes are
-r read only
-b binary mode

display directory and choose one to edit
e [*.*]
insert named file at current location
m name or merge name
rename current file to name
r name or rename name
show and modify editor configuration
cfg or configure
exit without saving changes
quit
fill marked block with string
fill string
sort lines using field number col as key
sort col
find differences between current and named file
d name or diff name
change current drive and or path
cd y: \path
convert decimal num to hex
hex num
convert hex num to decimal
dec num
convert number to ASCII
asc num
previous command line entered
up arrow
next command line entered
down arrow
send command to operating system
os command
also any unrecognized string

There is an important difference between OS system calls initiated using the ``os'' prefix on the command line and those initiated without the ``os'' prefix. The later are run as a separate thread which allows editing to continue while the called program runs. The system calls initiated with the ``os'' prefix however do not run as a separate thread. This means that the editor will wait until the system call is done before allowing any further editing. This behaviour is desirable when a system call is part of a macro since then the macro can be made to wait for the results of the system call.