home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 2
/
CDPD_II_2352.bin
/
scope
/
126-150
/
scopedisk128
/
m2du522
/
du.tutor
< prev
next >
Wrap
Text File
|
1992-10-27
|
8KB
|
184 lines
# THIS FILE WILL WORK AS A Du.hist file, but it is primarily
# designed as a TUTORIAL. - Greg Browne 04/14/90
#
# Du.hist files have 3 types of lines.
#
# 1) COMMENTS
# Du.Hist files may have comments for clarification. Comments are lines
# which start with either # or ; AND have a <SPACE> as second character.
#
; **********************************
; STARTUP IS FASTER WITHOUT COMMENTS <<<<<<<<<******
; **********************************
;
#
# 2) "R" gadget 'history items.
# The FIRST 20 lines NOT starting with a # or ; sign are assumed by
# the program to be "R" gadget history items. (INCLUDING BLANK LINES).
#
# THE "R" history is now 20 items long.
# A group of items is shown as an example below, AFTER the description
# of Replacement Commands.
#
#
# 3) Replacement Commands
# IF the character DIRECTLY after the # or ; is one of the following,
# the balance of the line will be considered a possible command line.
# (These may also be changed in the program - see a discussion at the
# end of this file for how that works)
#
# COMMANDS ARE: S T P E A O R 0..8 B C Z L (case insensitive)
#
# format: #Cwhatever it may be
# | |
# | actual command to be used. May be the entire line or
# | part, as specified below.
# Character indicating which command
# (spaces between the character and the command are removed)
#
#Sc:SuperShow
# (S)how program name - ENTIRE BALANCE OF LINE IS USED
# if no name given or no #S included, Du's puny internal show is used
# The internal routine is ALWAYS available by using the RIGHT mousebutton.
#
#Tc:ppmore
# (T)YPE/HTYPE external program name - ENTIRE BALANCE OF LINE IS USED
# if no name given or no #T included, Du's internal routines are used.
# The internal routines are ALWAYS available by using RIGHT mousebutton.
#
#Pc:sprint
# (P)RINT/HPRINT external program name - ENTIRE BALANCE OF LINE IS USED
# if no name given or no #P included, Du's internal routines are used
# The internal routines are ALWAYS available by using RIGHT mousebutton.
#
#e c:Emacs
# (E)ditor program name - ENTIRE BALANCE OF LINE IS USED
# if no name given or no #E included, Du chooses "dme" as editor.
# Note that all leading spaces on command names are stripped off, so this
# IS a valid line.
#
#Edme
# However I like "dme" so I'll put it back in place for now. SEE HOW THE
# LATEST ITEM ALWAYS TAKES PRECEDENCE when the same command is used twice.
#
#Aram:
# (A)ccess directory on startup - ENTIRE BALANCE OF LINE IS USED
# This can be ANY valid path - just used ram: for less mess.
# if no name given or no #A included, Du chooses ram: from WB
# or the current directory from CLI. STARTUP ONLY!!
#
#ofile VALID LINE - Changes Outname choice 3 from SER: to file
# (O)utput device alternate name. This replaces the "SER:" output device
# on the PRT:/PAR:/SER: gadget.
# Only 4 characters following "O" are used (AFTER removing leading spaces).
#
#Rrun
# (R)un command to use. ENTIRE BALANCE OF LINE IS USED.
# This replaces "run >nil: <nil:" for the DO gadget's last or only pass.
# NOTE THAT with 1.3 the default above REALLY discards as it is supposed
# to. Somehow it still put output to CON: window before. If you want
# CON window output to be seen, use 'run <NIL:' or 'run' for this command.
#
#
# SPECIAL - DEVICE NAME Replacement [0..8]
# These will replace the device gadgets above the filewindow.
# Left to right [df0 = 0 ram = 8]
# Again only 4 characters maximum are used.
# shorter devices MAY be used (such as c: or l:)
#2 ff1: THIS LINE IS VALID (leading spaces ALWAYS removed first)
#6rad: SO IS THIS (remember only 4 characters are examined)
# 6ff0: THIS IS NOT (there is a space BEFORE the 6)
#
#
# Finally, the miscellaneous commands
#B
# (B)ottom half if interlaced screen. NO TRAILING LETTERS.
# Tells the program to relocate to the bottom half of the screen if it
# detects an interlaced screen when starting up.
#
#C
# (C)lose up window to start. If this is found, the window will go
# immediately into the shrink mode on startup and sit at the top edge
# of the window (sorry, no optional positioning yet - but you can move
# it by dragging).
#
#Z (allow siZing gadget) Until I figure out how to automatically determine
# that a 3000 is in use, I must allow a way to include or exclude the
# sizing gadget (the 3000 puts a slider bar in the right area where I
# have gadgets. To have your window allow sizing, include the #Z command.
#
#L (start in inter"L"ace mode). This starts the program on a custom
# interlaced screen with about 35 files per window. Toggle on/off is
# available as RIGHT mouse on the "SIZES/DATES" toggle gadget. THIS TAKES
# PRECEDENCE OVER THE #C command above if both are in a Du.hist file.
#
# =====================================================
#
# OTHER SECOND LETTERS are ignored
# NOTE, HOWEVER, that the previous line COULD NOT leave the first space out
# or the interpreter will see that line as an "O" command and replace the
# "file" inserted above with "THER".
;
;
# Now follow the real "R" gadget Items I use most. They can be grouped
# or interspersed with commands and comments and will be picked up properly.
# The next line is blank on purpose - makes R-00 a blank item.
NewZap
katz
diskx x
PPack
ppmore
mash
mash -d
SPref
Pprefs
execute
zoo a: {D}/DuZooFiles {S}/*
lharc e
lharc v
lharc a
zoo -e
QS
#---------------------------- THE END ---------------------------------------
# EVERYTHING past the 20th history item is IGNORED, so put your commands
# earlier in the file. After it reads the 20th item (if there is one),
# it closes the file and quits cold. That means these lines will not even be
# looked at by the program, since there are 20 lines of history above here.
#----------------------------------------------------------------------------
# WHERE TO PUT THIS FILE
#
# Du.hist will be looked for FIRST in current directory then in S: and the
# first one found will be used. If neither found, the program will initialize
# all histories as empty (""). REMEMBER, a file in the current directory
# will take presidence over s:Du.hist
#----------------------------------------------------------------------------
# REPLACING Du.hist AT STARTUP
#
# If started from the CLI, you may add a single argument to the line, and
# the program will attempt to use it as a history file name. If that file
# does not exist either in the current directory, or in S:, the program
# will NOT try to read any history file (i.e. it will NOT revert to Du.hist)
;
;
; MISCELLANEOUS - READING A NEW Du.hist "ON-THE-FLY".
;
; ANY file can be read from within the program as a Du.hist file.
; Put the name of the file in the "R" gadget WITHOUT A LEADING #, and click
; the RIGHT mousebutton on the "R" beside the gadget. The file will be
; read like Du.hist. Only as many "R" items as are in the new file will be
; replaced. Any beyond that will be unchanged. Also, the #A command will
; not be useful from this mode.
;
# MISCELLANEOUS - USING REPLACEMENT COMMANDS "ON-THE-FLY".
#
# YOU MAY CHANGE any of the # commands (except #A) from within the program).
# Put the complete command (including the # or ;) in the "R" gadget and
# click the RIGHT mousebutton on "R". The program will read that line as
# though it were a command (easy change of Showname, Editor, Devices, etc).
# EOF============================EOF