Fred command summary, System variables – Gasboy CFN III Quick Reference Guide v3.3 User Manual
Page 21

CFN III Quick Reference
MDE-4483 CFN III Quick Reference Guide v3.3 · August 2005
Page 17
FRED Command Summary
Modes
Command
Mode Function
^E
i e c
enter edit mode
^C
i e c
enter command mode
^N
i e c
enter insert mode
Insert or Edit Mode
Command Argu. Mode Function
^O
i e open line above
ENTER key
i e open line below
↑
or ^K
i e cursor up one line
↓
or ^J
i e cursor down one line
←
or ^H
i e cursor left one character
←
or ^L
i e cursor right one character
SPACEBA
R
e cursor right one character
b
e move cursor to beginning of line
e
e move cursor to end of line
c
e enter command mode
i
e enter insert mode
DEL key
i e
delete one character left of
cursor
^D
i e delete one character at cursor
^X
i e delete current line
k
char
e
kill line from cursor up to
character char
^U
i e undo changes to current line
^S
i e split line at cursor
^R
i e join current line to line above
^Y
i e save current line
^P
i e put saved line below current line
u
e scan backward (up) through file
d
e scan forward (down) through file
g
n
e c go to line number n
x
char
e
exchange character at cursor
with character char
s
char
e search for character char
Command Mode
Command Argu. Mode Function
g
n
ec go to line number n
change
begin #
end#
c
make changes to designated
lines
find
c
search for a pattern, enter insert
mode
search
begin#
end#
c
print all lines in search range
that match a pattern
clear
c erase entire file
del
begin#
end#
c deletes designated lines
append filename
c insert file at cursor
load
filename
c replace buffer with file
name
filename
c set name of current file
save
c save file
resave
c resave existing file
q
c
quit editor, exit to operating
system
tabs
n
c set tab stops every n columns
System Variables
The following variables can be used in command
files. Note that these are case-sensitive—they must
be uppercase or lowercase, as shown below:
Name
Definition
%0
Number of arguments on command line (note
that this character is a zero).
%1-
%9
Command line arguments one through nine.
%A
Number of input lines from command
terminalwaiting to be read. (To test if user
pressed ENTER).
%B#
Current drawer balance for drawer #. No
decimal is displayed.
%C
Where command is being executed from:
1 = local command port (command terminal)
2 = remote command port
3 = cron
4 = console #1
5 = console #2
6 = console #3
7 = console #4
8 = Profit Point #1
9 = Profit Point #2
10 = Profit Point #3
11 = Profit Point #4
%D
Date (MM/DD/YY).
%E
Last error code from last command.
A 0 means the command was completed
successfully; greater than 0 usually means the
command failed. Note that FIND and
STATUS O and CLOSE use the error code in
a special way.
%Fd
Where d is the drive letter. Gives space
remaining, in bytes.