 Ŀ
   $$$$$$$  $$$$$   $$$$$$$$$$      $$$$$$$$$    Ŀ   
   $.%%%%$$ $%%%$  $%%%%%%%%%.$    $%%%%%%%.$$    NEW PACKET GENERATION    
   $%%%%%%$$$%%%$  $%%%%%%%%%%$   $%%%%%%%%%.$        Version 1.02         
   $%%%$%%%$$%%%$  $%%%$$$$$%%$  $%%%$$$$$%%%$                             
   $%%%$$%%%$%%%$  $%%%$   $%%$  $%%%$   $$$$$       (C) 1996-1998         
   $%%%$$$%%.%%%$  $%%%$$$$$%%$  $%%%$                     by              
   $%%%$ $$%%%%%$  $%%%%%%%%%%$  $%%%$  $$$$          the NPG-Team         
   $%%%$  $$%%%%$  $%%%$$$$$$$   $%%%$ $%%%%$                              
   $%%%$   $$%%%$  $%%%$         $%%%$  $$%%$              a               
   $%%%$    $%%%$  $%%%$         $%%%$$$$.%%$         sub-division         
   $%%%$    $%%%$  $%%%$         $%%%%%%%%%%$              of              
   $%%%$    $%%%$  $%%%$          $%%%%%%%%'$      Radiation Software      
   $$$$$    $$$$$  $$$$            $$$$$CGS$                               
                                                    
 

   What is NPG
   

    NPG is the abbreviation of NEW PACKET GENERATION. NPG is a packet-
    application which is completely free. Although donations are always
    welcome, this will give us some cheer to keep improving NPG and
    implement user wishes.

    Donations can be send to:

     Robin van Nooy
     Wolgaplantsoen 2
     5152 SL Drunen
     The Netherlands

     For bank-transfers please contact me! Contact info mentioned
     at the credits.

        E-Mail: npg@cygnes.demon.nl (preferred for this)
                npg@mindless.com

        Packet: NL1CGS@NL3DRN.NBW.NLD.EU
                DR1CGS@VE4UA.#WPG.MB.CAN.NOAM



   Credits
   

             Programming   - Robin van Nooy (NL1CGS)
           ---

               Packet: NL1CGS@NL3DRN.NBW.NLD.EU
                       DR1CGS@VE4UA.#WPG.MB.CAN.NOAM
               E-Mail: npg@cygnes.demon.nl
            Home-Page: http://www.cygnes.demon.nl/      (music site)
                       http://www.cygnes.demon.nl/npg/  (npg site)


          Additional Programming - Robert Nouwens (NL1QMA)
        ---
               Packet: NL1QMA@NL3DRN.NBW.NLD.EU
               E-Mail: nl1qma@usa.net


         Mail answering & betatesting - Barry Lombarts (NL1BAR)
      ---
               Packet: NL1BAR@NL3DRN.NBW.NLD.EU
                       NL7NPG@NL3DRN.NBW.NLD.EU
               E-Mail: barry@lombarts.demon.nl
            Home-Page: http://www.lombarts.demon.nl/


   Requirements
   

    NPG needs a reasonable powerfull computer, we recommend atleast 
    a 486. But we've heard it runs well on a 386 or even a 286
    (to our surprise!).
    Further your computer needs some available XMS-memory, the size
    of the needed memory depends on the number of lines you want for
    the windows. A mouse is optional. The mouse can only be used when
    you're using VGA-80x25 mode. More info about the mouse can be found
    elsewhere in this manual.
    Considering the screen-support your card has to be atleast an EGA
    or VGA. When you're using CGA you'll miss the bottom part of the
    screen (not tested).
    We especially recommend VGA. To communicatie with the outside world
    you need ofcourse a transmitter. The communication between your
    computer and modem can be handled by 2 different packet drivers.
    
             TFPCX-driver, or G8BPQ-nodesoftware.
			
    There are also replacers for the TFPCX-driver, like TFPCR and TFX.
    I'm still trying to get TNC-support working, but it still screws
    up and I still don't know how to resync it..I don't even have a
    TNC, so I'm using those emulators. Any ideas about TNC-support
    please let me know!

    For users who want to use more than 10 channels might have some
    trouble with XMS. Even when they enough free XMS memory.
    The cause of this are the XMS-handles the computer uses. 
    Standard you'll get 32 handles. But when you change the amount
    of handles to 60 you'll get rid off all problems.

    Just add the following line to your CONFIG.SYS

    DEVICE=C:\DOS\HIMEM.SYS /NUMHANDLES=60

    You might have to change path to your HIMEM.SYS


   Possibilities of NPG
   

    With NPG you have quite a lot possibilities. Because of the BPQ-support
    it's possible to run NPG together with FBB. You can do this by using 
    Desqview. (You can find more about this further in this manual)

    We have supported "minimal" MBU-color. This means we restricted us
    to lines of 80 characters. So when you add one color, like ^P your
    line can only be 78 characters long because you used 2 characters
    for the color. Colors aren't used that extreme, that's why we choose
    it this way and saves alot of memory. We also changed a minor thing
    to MBU-COLOR, color ^A (black on black) will be used to set color
    to default color, which is set in the config.
	
    Extended RUN-application system. A quite complex system,
    just look in the helpfile of the RUN-System for the construction
    of run-applications.

    Handy MESSAGE-LIST option (like in PCK). Messagelists are recognized
    automaticly and put into a special list. In this list you can select
    the messages you would like to read. Now you don't have to remember or
    type the messagenumbers.

    Quote-function. With this option you can copy lines you have received
    to the TX-buffer. So you don't have to type all those sentences again.
    
    Editor-function. NPG now has a complete built-in editor, with quite
    handy features.

    Automatic-password login. When connecting a station with a connectfilter
    this function might be handy. NPG will automaticly log in for you. You
    don't even have to enter a key.

    Macro-system. See Macro-part below.

    Mail-detection. Incase your call in mentioned in your homebbs's beacon the
    AUTOMAIL-macro will be executed. Just change AUTOMAIL.MAC to your wishes.
    You can let the macro get your mail, or just popup a window with some text
    in it.

    There are even more possibilities...you'll see them further in this manual.

   Used keys
   

    Normal mode
    
     F1..F10            - Go to channel 1..10
                           in case more than 10 channels then also (11..20)
     Shift+F1..F12      - Start Macro (F1.MAC - F12.MAC)
     F11/ALT-T          - Go to message-selector
     F12/ALT-M          - Go to monitorchannel
     Ctrl-F1            - Callsign-bar up
     Ctrl-F2            - Callsign-bar down
     Ctrl-F3            - Flag-bar up
     Ctrl-F4            - Flag-bar down
     Ctrl-F8            - Dos-Shell
     Ctrl-F9            - Connect BPQ-Switch
     Ctrl-Left          - 1 channel down
     Ctrl-Right         - 1 channel up
     Ctrl-Up            - 1 line up in Rx-window
     Ctrl-Down          - 1 line down in Rx-window
     Ctrl-Home          - 1 line up in Monitor-window
     Ctrl-End           - 1 line down in Monitor-window
     Ctrl-PgUp          - 10 lines up in Monitor-window
     Ctrl-PgDn          - 10 lines down in Monitor-window
     Up                 - Cursor 1 line up
     Down               - Cursor 1 line down
     Left               - Cursor to left
     Right              - Cursor to right
     Tab                - Tabulate
     Pg-Up              - Cursor 10 lines up
     Pg-Down            - Cursor 10 lines down
     Alt-1              - Go to upper-screen
     Alt-2              - Go to lower-screen
     Alt-3              - Scroll screen 1 line up
     Alt-4              - Scroll screen 1 line down
     Alt-A              - Activate/De-Activate channel
     Alt-B              - ^G-Bell On/Off
     Alt-C              - Color selector
     Alt-E              - Editor
     Alt-F              - File-Transfer Menu
     Alt-G              - G8BPQ-status
     Alt-H              - Help
     Alt-I              - Show connection info
     ALT-K              - Pop-Up windows On/Off
     ALT-L              - Line-quoter
     Alt-N              - Abort Message-colors
     Alt-O              - Color Mode On/Off
     Alt-P              - Printer On/Off
     Alt-Q              - Quick rame-Header in monitor On/Off
     Alt-R              - Repeat last command
     Alt-S              - Sound On/Off
     Alt-U              - Send Beacon
     Alt-W              - Save Menu
     ALT-X              - Exit NPG
     Alt-Y              - Echo On/Off
     ALT-Z              - Shadows On/Off
     Insert             - Overwrite/Insert mode
     Home               - Move cursor to begin of the line
     End                - Move cursor to end the of the line
     Esc                - Command/Convers Mode
     Ctrl-C             - Insert user callsign
     Ctrl-D             - Insert current date
     Ctrl-E             - Insert extended current date
     Ctrl-N             - Insert user name
     Ctrl-O             - Insert origin (see origins.npg)
     Ctrl-R             - Insert time
                            (used to be Ctrl-T, but since you need this
                             key when connecting to a NOS-system it has
                             changed to Ctrl-R)
     Ctrl-S             - Insert my callsign
     Ctrl-V             - Insert software version


    During Message-List
    
     Up                 - Go 1 line up
     Down               - Go 1 line down
     Pg-Up              - Go 10 lines up
     Pg-Down            - Go 10 lines down
     Left               - Go 1 channel down
     Right              - Go 1 channel up
     Space              - Select/deselect message
     r,R,Enter          - Read selected messages
     v,V                - Read selected message in verbose-mode
     k,K                - Kill selected messages
     +                  - Selecter all messages
     -                  - Deselect all messages
     /                  - Search
     *                  - Invert message-list
     Delete             - Erase message under cursor
     Insert             - Send copy of message to other calls
     ALT-C              - Erase message-list
     ALT-L              - Import message-list
     ALT-R              - Request Unproto
     ALT-W              - Export message-list


    During Line-Quoter (normal mode)
    
     Up                 - 1 Line up
     Down               - 1 Line down
     Page-Up            - 10 lines up
     Page-Down          - 10 lines down
     Spatie             - Copy active line to TX-buffer
     Escape             - Exit Line-Quoter
     Enter              - Copy active line to TX-Buffer and
                          exit Line-Quoter


    During Line-Quoter (SAVE mode)
    
     Up                 - 1 Line up
     Down               - 1 Line down
     Page-Up            - 10 lines up
     Page-Down          - 10 lines down
     B                  - Set begin selection
     E                  - Set end selection
     Escape             - Abort Line-Quoter and save
     Enter              - Exit Line-Quoter and save selected part


    During Editor
    
     Alt-C              - Color select
     Alt-F              - File Transfer Menu
     Alt-L              - Load File
     Alt-N              - New File
     Alt-W              - Save File



   Intern //-commands
   

    All the commands start with the well known double slash //    
    These commando's can be disabled by pressing ALT-I. Incase you
    enabled the remote and disabled INTERN then he will only execute
    RUN-applications.
    //-Commands can also be executed by the sysop. This can be done
    by adding a exclamation mark before it in COMMAND-mode.
    For Example: !//DIR
    Incase you want to execute a RUN-application you don't have to type
    the //. You just type !RTT to execute RTT.EXE

    Here is a list of all available commands.

    1..20 <text>      - [SEND TO CHANNEL]
                        Send a message to a specific channel.
                        Maximum channels depends on the settings used in
                        NPG.CFG (channels)

    CAT                 [CATALOG/DIRECTORY]
    DIR               - Show directory listing of the USER-dir.

    CD <dir>          - [CHANGE DIRECTORY]
                        Change current directory. You can't go higher then
                        the original USER-Directory.

    COL [On/Off/1/0]    [COLOR MODE]
    COLOR             - Change MBU-color mode

    CS                - [CONNECT STATUS]
                        Look who's currently connected and to which channel

    D                   [DISCONNECT]
    DISC              - Disconnect connection without text

    E <text>            [ECHO]
    ECHO <tex>        - Echo text

    H                   [HELP]
    HELP              - Sends Help

    I                   [INFORMATION]
    INFO              - Gives some info about whatever.

    MH                  [MONITOR HEARD]
    MHEARD            - Shows the last 25 calls which are heard

    N <text>            [NAME]
    NAME <text>
    REG <text>        - Register your name

    NE                  [NEWS]
    NEWS              - Shows latest news

    Q                   [QUIT]
    QUIT              - Disconnect connection with QRT-message

    RE <file>           [READ]
    READ <file>       - Read ASCII(text)-file

    RI <text>           [RING]
    RING <text>       - Makes some noise and puts a message on the screen.

    RPRG <file>       - [READ PROGRAM]
                        Download BINARY-file

    V                   [VERSION]
    VER               - Shows NPG version

    WPRG <file>       - [WRITE PROGRAM]
                        Upload a BINAIR-file

    WR <file>           [WRITE]
    WRITE <file>      - Save ASCII(text)-file

    YGET <file>       - [YAPP-GET]
                        Download BINAIR-file with YAPP

    YPUT <file>       - [YAPP-PUT]
                        Upload BINAIR-file with YAPP


   Macro-commands
   

    Macro-commands can be used in Macro-files aswell typed by the sysop.
    But can't be executed by the remote-user.
	

      File transfer functions
      
       SENDWPRG <file>     - Send file using WPRG/RPRG-protocol.

       SENDBPUT <file>     - Send file using BPUT/BGET-protocol.

       SENDMAC  <file>     - Send file as text, all %-commands in it will be
                             replaced by the correct data.

       SENDRAW  <file>     - Send file as binary without any protocol.
                             Just using raw-frames

       SENDTEXT <file>     - Send file using TEXT-format.

       SENDYAPP <file>     - Send file using YAPP-protocol (NPG->FBB)

       SENDYPUT <file>     - Send file using YAPP-protocol (NPG->NPG)

       YGET <file>         - Download file with YGET

       YD <file>           - Download file with YD


      Abort functions
      
       7PABORT             - Abort 7plus storage
       MABORT              - Abort active macro
       PWABORT             - Abort auto-password function
       RABORT              - Abort RUN-application
       TABORT              - Abort file-transfer (sending)
       WABORT              - Abort file transfer (receiving)
       

      File functions
      
       SAVE [file]            - Save everything to a file
                                Incase you don't add a filename the current
                                save-file will be closed

       SAVELIST [file]        - Save active messagelist.

       KILL  <file>
       ERASE <file>           - Erase file from disk/drive

       COPY <file1> <file2>   - Copy file1 to file2

       RENAME <file1> <file2> - Rename file1 to file2

       LOADLIST [file]        - Load active messagelist, with filter.


      Clean up functions
      
       CLS                 - Erase active RX and TX-Buffer
       CLS TX              - Erase active TX-Buffer
       CLS RX              - Erase active RX-Buffer
       CLS TX ALL          - Erase all TX-Buffers
       CLS RX ALL          - Erase all RX-Buffers
       CLS ALL             - Erase all RX and TX-Buffers
       CLS MONITOR         - Erase monitor channel
       CLEARLIST           - Erase complete messagelist


      Channel functions
      
       C <call>
       CONNECT <call>      - Make a connection

       D
       DISCONNECT          - Cut off connection

       I <call>
       MY <call>
       MYCALL <call>       - Set sysop-callsign

       CHANNEL <number>    - Set active channel
       COLOR [On/Off/1/0]  - Activate/de-activate MBU-color.
       ECHO [On/Off/1/0]   - Activate/de-activate echo
       ECHOTEXT <text>     - Echo text in Rx-window
       EXECUTE <program>   - Start an external RUN-application in SYSOP-mode
       EXEUSER <program>   - Start an externam RUN-application in USER-mode

       INT    [On/Off/1/0]
       INTERN [On/Off/1/0] - Activate/de-activate intern //-commands

       MAC <file>          - Start a new macro
       PRINT [On/Off/1/0]  - Activate/de-activate printer

       REM    [On/Off/1/0]
       REMOTE [On/Off/1/0] - Activate/de-activate remote-commands

       SPY <call1> <call2> - Spy 2 persons who are connected to eachother
                             When no calls are entered the spy will be turned
                             off.

       SUSPEND [On/Off/1/0]- Activate/de-activate channel
                             (only works in tfpcx-mode)

       DELAY <time in sec> - Give a delay for a couple seconds
       RESTART             - Restarts a macro (used for loops)
       WAITCON             - Let Macro wait till the channel is connected
                             (This will not execute a connection)
       WAITDISC            - Let Macro wait till the channel is disconnected
                             (This will not execute a disconnection)
       WAITSTRING <text>   - Let a macro wait till he receives the text
                             he needs


      Global functions
      
       AUTOMAIL [On/Off/1/0] - Auto mail detection On/Off
       BINMON [On/Off/1/0]   - Binary monitor On/Off
       BELL [text]
       RING [text]           - Make some noise and put TEXT on the screen
       BLINK [On/Off/1/0]    - Set blink on/off. When turned off more
                               backgroundcolors can be used.

       EXIT [Yes/No/1/0]
       QRT  [Yes/No/1/0]     - Exit NPG, incase Yes or 1 as parameter
                               NPG will prompt you a confirm box. When
                               you don't add parameters the default
                               parameter will be used from the config.(CEXIT)


       LEVEL [number]        - Assign a level to a logged in user.
                               Maximum value is 9. Incase you set the level to
                               0 you have rejected the user

       NAME [name]           - Set name for user
       NOTIFY [On/Off/1/0]   - User notification On/Off
       POP [On/Off/1/0]      - Activate/de-activate pop-up windows
       POPTIME <number>      - Set new popup-time for pop-up windows
       POPUP <text>          - Shows text in a pop-up window
       PORT <portnumber>     - select unproto port
       QRL [text]            - Sysop-absent message
                               When you use a @-sign before your sentence,
                               NPG assumes it's a file

                               Ie: QRL @EATING.TXT

                               When somebody connects the file EATING.TXT will
                               be send as QRL-Message

       QV [On/Off/1/0]     - Quickview, quick notation of monitor frames
       SOUND [On/Off/1/0]  - Activate/de-activate sound.
       UMAIL [On/Off/1/0]  - Add unproto mail to messagelist



   Flags on the screen
   

       7     -   7Plus save
       A     -   Channel disabled
       b     -   Back scroll
       B     -   Ctrl-G Bell
       C     -   MBU-Color Mode
       e     -   Editor Mode
       E     -   Echo
       I     -   Intern Commands
       M     -   Macro Active
       p     -   Print + Back scroll
       P     -   Print
       Q     -   QRL (Sysop not available)
       R     -   Remote
       s     -   Save to disk
       S     -   Spy mode
       T     -   Send File
       W     -   Receive file (transfer)
       y     -   Receive file (YAPP)
       Y     -   Send file    (YAPP)


   %-Commands
   

    %-Commands are used in the following files:

     CTEXT.NPG  - Connect text
     DISC.NPG   - Disconnect text
     HELP.NPG   - Help file
     INFO.NPG   - Information file
     NEWS.NPG   - News file
     BEACON.NPG - Standard beacon file
     HEADER.NPG - Message Header
     TAIL.NPG   - Message Tail

    U can also use %-commands in files which are send by the SENDMAC-command.

    Here is a complete listing with %-commands which are currently 
    implemented:

         
         %% = %
         %c = Connection time
         %C = User callsign
         %d = Date last connection
         %D = Active date
         %K = Number of connections
         %l = User level
         %M = Sysop callsign
         %N = User name
         %O = Origin
         %P = Active channel
         %Q = Activate Qrl-line/file when sysop is not available.
              This will prevent QRL send to unwanted channels like
              where your PMS or NODE is running
         %t = Time last connection
         %T = Active time
         %v = Program version


   Macro-files
   


    Macro-files can be executed by the MAC command.
    For example: MAC GETMAIL.MAC

    How such macro-file is constructed is explained below:

    We have 4 different typs of lines which can be used in an 
    macro-file:  TEXT, CMD, ESC and TXT
    After every command a '='-sign will be placed with the needed
    parameters.
    
      TEXT
      
        This function will send a line to the user (carriage return included)
        For example, to send the text 'Hello everybody',
        you have to do this:

                      TEXT=Hello everybody

      CMD
      
        With this function you can execute Macro-commands.
        For example to wait for a string like 'NL3DRN-0> you have to use
        the following command:

                      CMD=WAITSTRING NL3DRN-0>

      ESC
      
        With this function you can execute //-commands. 
        For example the DIR-function:

                      ESC=DIR

      TXT
      
        This function sends a line to the user without a 
        carriage return.


   Automatic Password
   

    NPG has a build in password system, with this you can auto-login
    to bbses or other stations who are using the well known connect filter.
    When connecting a user a file will be opened with the password for
    that station. For example, when we connect NL3DRN, the file NL3DRN.ACP
    will be read. The file is constructed very simple. It consist of 4
    types of lines. Example of NL3DRN.ACP
     

      SYS
      SYS
      NL3DRN-0>
      NL1CGS NOBODYISALLOWEDTOREADTHIS
      DR1CGS 123241823121n0398710nh87104dh13rmm987

    The first line consists the SYS-prompt,
    for example 'Type SYS to generate password!'. When that word/line
    is found it will send the second line. When the first 2 lines
    are empty NPG assumes you don't have to send something to
    generate a password, so he immediately checks for the password
    prompt. The password prompt is on line 3. On the 4th line and
    further you can add the passwords.
	

   CRON.NPG
   

    The Cron-file is like one big macro-file which is executed every minute,
    we can execute macros on special times.
    Example of CRON.NPG

     $START=0:BEACON.MAC
     $ALL=0:TEST.MAC
     $22:25=10:AUTOMAIL.MAC
     $x3:00=8:BULLETIN.MAC
     $xx:x5=2:MAILIN.MAC

    Every line starts with a dollarsign.
    After the dollar sign you have 3 possibilities:

       START - this one is executed the first time cron is executed.

       ALL   - this one is executed every hour.

       0..23 - Set hour.
       0..59 - Set minute.

               Using an 'x' means you don't care what the value is
               x3:00 is executed at:

                        03:00  13:00  and  23:00

               xx:x5 will execute the macro every 10 minutes
                          00:05,00:15...23:45,23:55

    After that we'll get an = sign, and after that you'll have
    to specify a channel number. On this channel the macro will
    be executed. After the : you can enter the macro you want
    to execute.
    

   Mouse-support
   

    The mouse is currently only used in 80x25 VGA-scrollmode,
    with the mouse you can scroll the screen in a fast way.
    You can do this by moving the mouse up and down.

   NPG under windows
   

    When you're using a baycom-modem and windows you'd better
    use BPQ and NODE2BAY (together with BAYDRV.VXD)
    This works alot better than BPQAX25.

    This hint was received from Randy - NL0RTH! Thank you for this
    great hint!


   ----------------------------------------------------------
   Unfortunately we have to include this disclaimer.

   Disclaimer: We are not responsible for any damage caused to
               your equipment by using NPG. Use NPG at your
               own risk!

