home *** CD-ROM | disk | FTP | other *** search
- The Cookie Editor 11/2/89
-
-
- Cookie n,: any of various small sweet flat or slightly raised cakes.
- -- Webster's Dictionary
-
- Cookie n,: A short humorous saying or anecdote.
- -- Any computer user
-
- This program was designed to allow all those out there using a 'Cookie'
- or 'Fortune' program to add to or edit their exsisting 'Cookie' files
- without having to resort to dragging out their text editors manuals to
- figure out how to embed control characters in their text. Also, when run
- as a Door application on a BBS to allow your users to add their
- little flashes of wit to your 'Cookie' file. The Cookie Editor also
- will allow you to delete cookies your users may have left that are in
- poor or questionable taste:-)
-
- Using the Cookie Editor:
-
- When you first run The Cookie Editor only two commands are operational:
-
- O - Open a Cookie File and Q- Quit the editor.
-
- Pressing 'O' allows you to specify what file to start editing. Note that
- since The Cookie Editor was designed to also function as a door the
- GEM File Selector is NOT used for any file operations.
-
- Pressing 'Q' will exit the program.
-
- Once you have opened a file several other commands become active:
-
- N - Show Next Cookie In Current File
-
- B - Go Back One Cookie
-
- D - Delete The Current Cookie Being Displayed
-
- E - Edit Current Cookie Being Displayed
-
- A - Add A Cookie To The Current File
-
- When you select 'E' you are placed in the Editor where the following commands
- are allowed:
-
- Command Meaning Action
- a append Add additional text
- l list List Cookie with line numbers
- s save Save Cookie and exit editor
- d delete Delete a line
- r replace Replace part of an exsisting line
- q quit Quit Editing Do NOT change Cookie
-
- Append: Appends text to the end of the Cookie or if a line number is
- specified, i.e. a4 the test is added after line 4 of the current cookie.
-
- List: List current cookie with line numbers.
-
- Save: Save the current cookie and exit editor.
-
- Delete: Delete a line. If you do not specify a line number you will be asked
- for one.
-
- Replace: Replace a part of an exsisting line. If you do not specify a line
- number you will be asked for one.
-
- Quit: Quit the editor and throw away all changes.
-
- When you specify 'A' from the main menu you are placed in the editor in
- Append mode to enter your new cookie.
-
- Running The Cookie Editor as a door:
-
- The Cookie Editor when it runs looks for a carrier present at the RS232
- port. If it finds one, it assume it is being run as a door. As a door
- the only commands operational are:
-
- n next Show next Cookie
-
- b back Show prior Cookie
-
- a add Add a Cookie
-
- q quit Quit
-
- Since Open and Close file are not available from remote you will need to
- tell The Cookie Editor the name of the cookie file to edit on the
- commandline. To do this STadel you can define a line in your CTDLDOOR.SYS
- file like so:
-
- cookedit u g:\stadel\editor.tos cookie.dat
- | | | |
- | | | Name of Cookie File To Edit
- | | Name Of Cookie Editor And The Dir It Lives In
- | Anyone May Use This Door
- Name Of Door
-
- This way you could let your users edit on a copy of your cookie.dat file
- and check their additions before releasing them for general use.
-
- The Cookie Editor is also 'Carrier Smart' in that if the remote user
- drops Carrier it will exit back to the calling BBS.
-
- The Cookie Algorithm
-
- Basically, a Cookie file is a collection of sayings seperated by CONTROL-L.
- When a Cookie program is run it generates a random number and seeks
- forward until it finds a CONTROL-L. The Cookie program then displays the
- text until it encounters another CONTROL-L. Notice that using this method
- that the first Cookie in the file is never used, but is just a filler.
-
-
-