home *** CD-ROM | disk | FTP | other *** search
- NOTEPAD 4
- MODIFICATION SCHEDULE
- VERS. #
- 4.0 ADD CARRIAGE RETURN ON END OF LINES PLUS DONT FEED
- TRAILING BLANKS ON A LINE (FOR BREVITY)
- 3.4 SWITCH TO DIRECT SCREEN WRITES INSTEAD OF BIOS
- CALLS FOR SPEED
- 3.3 TAB AND BACK TAB FUNCTIONS IMPROVED AND INVOKING CHAR
- CHANGED TO SHIFT LEFT AND RIGHT ARROW
- 3.2 ADD PRINT SCREEN AND CHANGE NOTEPAD FILE
- FUNCTIONS; FIX EBL INCOMPATIBILITIES
-
- 3.1 FIX PC-TALK CRASH BUG
- CHANGE WORKING OF TAB CHARACTER
- SAVE TO DISK ONLY WHEN CURSOR HOMED
-
- 3.0 ADD SAVE TO/RESTORE FROM DISK FEATURE
-
-
-
- Many times, while sitting at the keyboard, I would find
- myself reaching for a pad of paper or that ever elusive pen to
- jot down a file name or a number off the screen. Thus it was
- with excitement that I came across a copy of the public domain
- program NotePad, which provided an easily called up note pad for
- jotting down notes (this idea is also encorporated in such
- products as SideKick, but the public domain well rarely fails
- me).
-
- I was rather disappointed with NotePad, however, in that once
- a note was written, it was up there for good; no editing was
- possible. One wasnt even allowed to back up the cursor; thus,
- when a screen full of notes had been made, notepad was no longer
- of any use. I decided that it was worth the trouble of rewriting
- the thing. Since the source was not to be found, I was forced to
- start from scratch and write my own.
-
- The new NotePad has the same format of being callable from
- any routine which performs keyboard input using interrupt 16 (and
- that's just about everyone) by entering a special key (currently
- configured for Alt-F10), once it has been installed by executing
- NP.COM from the command line or from the AUTOEXEC.BAT file. All
- of Notepad's function keys are on or near the arrow keys for ease
- of remembering. NotePad will only work on a compatible
- monochrome, EGA or C/G display and only in character
- (non-graphics modes). This is because NotePad writes directly to
- screen memory (NotePad originally went thru BIOS calls, but this
- proved too slow).
-
- NotePad allows easy editing of the notepad area. Unlike
- SideKick, NotePad is always in overstrike mode, but the INS key
- can be used to make space for added characters. All of the
- cursor keys have more or less expected meanings (except for END,
- PgUp and PgDn). See the key definition template below.
-
- In order to retain notes from one session to another, NotePad
- allows saving notes to disk and reading them back upon
- installation. NotePad may be installed by simply entering its
- name, with no arguments. If installed this way, any notes
- entered will not be saved to disk. It may also be installed with
- a file name argument, for example:
-
- NP a:notefile
-
- Notice that the filename must be a full path name, including
- any directories if applicable. NotePad will attempt to read
- that file. If it cannot, it will not install, thinking that the
- name was misspelled, etc. If it can, NotePad will read the note
- into the scratch area. Whenever the notepad area is exited, if
- the cursor is homed, NotePad will update the file by writing the
- scratch area out to disk. If the disk containing the specified
- file is not in the indicated drive, a new file will NOT be
- created and the scratch area will not be saved to disk. In this
- way, NotePad will not generate extra files on all your diskettes.
- However, since NotePad wants the scratch file to already exist, the
- user will need to create the scratch file before installing
- NotePad the first time. The contents of this file are not
- important (indeed, the file may be empty).Use any editor to
- create the file.
-
- Notepd4 can change note files by using the brown "-"
- key. Depressing this key will cause the open notepad to be
- updated (if the cursor is homed) and the operator to be quizzed
- for a new file name. Entering a new notepad file will cause that
- file to be open and the notepad reopened with that information.
- Entering a return with no file name will reopen the notepad area
- with the original data but with the original notepad file
- closed.
-
- NotePad will "feed" a note into the application as if it had
- been retyped from the keyboard (this is often called pasting).
- An example here best serves as explanation. A list of file names
- scrolls by on the screen, say from a 'DIR' or 'SDIR' command. I
- want to process these files (maybe simply delete them, but it
- makes no difference). If I process the first file, the rest of
- the file names will scroll off the screen. Therefore, I open up
- the note pad area and jot down the file names of interest. Now I
- need the file names for processing. I could open up the note
- pad, memorize the first file, close the note pad and type that
- filename again. But computers are supposed to save me work, not
- force me to type things multiple times; therefor, what I do is
- run my application routine up to the point that the file name is
- needed. Then open the window and place the cursor at the
- beginning of the file name and depress 'mark/feed' (configured
- for END key). I then scroll over to the character beyond the
- file name (by depressing Control-right arrow) and again press
- 'mark/feed'. NotePad then enters the filename again for me!
-
- Depressing the PrtSc key at any time that the notepad area is
- open will cause the note to be printed onto LPT1. A border of
- asterisks outlines the note on the printer for legibility. This
- is primarily so that the any notes can be stuffed in your pocket
- as you turn the computer off.
-
- Below is a layout of the keys to which NotePad assigns
- editing meaning. Any key which NotePad does not understand, it
- merely saves as ASCII. Depressing Alt-F10 enters and exits
- notepad.
-
-
- |-------------------------------------------------------------------------|
- | | | | | |
- | | HOME | UP ARROW | PG UP | - |
- | |move to top of| move cursor |delete current|change notepd |
- | RETURN |note area | up | line | file |
- | move to beg |--------------|--------------|--------------|--------------|
- | of next line| | | | |
- | | LEFT ARROW | | RIGHT ARROW | |
- | | move cursor | | move cursor | |
- | | left | | right | |
- |-------------|--------------|--------------|--------------| |
- | | | | | |
- | PrtSc | END | DOWN ARROW | PG DOWN | |
- | print note | mark/send | move cursor |insert a blank| |
- | | | down |line at cursor| |
- |-------------|--------------|--------------|--------------| |
- | | | |
- | INSERT | DELETE | |
- | insert a blank character | delete current character | |
- | | | |
- |-------------|--------------|--------------|-----------------------------|
-
- two seperate keys:
-
- |-------------| |--------------|
- | | | (DEL) |
- | ESC | | <-- |
- |delete from | | delete char |
- |curso right | | to left |
- |-------------| |--------------|
-
- and two control keys:
-
- |-------------| |--------------|
- | Cntrl | | Cntrl |
- | <-- | | --> |
- |move word | | move word |
- | left | | right |
- |-------------| |--------------|
-
- Note that NotePad is designed to work with other resident
- programs such as SideKick. It is especially designed to work in
- tandem with its cousin CutPaste. The pair make a powerful team.
- Just as with CutPaste, NotePad is being offered into the public
- domain without request for remuneration; however, improvements
- should be cleared with us before release and our names should not
- be removed from the source code. Note that both NotePad and
- CutPaste work GREAT with mice! Just configure your mouse to generate
- arrow keys upon movement, and END key upon depressing the button
- (for pasting operations).
-
-
- (Stephen) Randy Davis
- Gerry Boyd
- Larry Weiss
- Route 5 Box 107K
- Greenville, Tx 75401
- 214-454-2426
-
-
-