home *** CD-ROM | disk | FTP | other *** search
/ ftp.update.uu.se / ftp.update.uu.se.2014.03.zip / ftp.update.uu.se / pub / rainbow / msdos / misc2 / dialv23.lzh / HELP.INC < prev    next >
Text File  |  1985-08-03  |  6KB  |  122 lines

  1.  
  2. {********* This file is an "include" file to be used with DIAL.PAS. *********}
  3.  
  4.  
  5. Procedure HlpLine( Lin : Integer; Txt : Str61 );
  6. {
  7. Common way to paint a help line with f-v for the user.
  8. }
  9. Var
  10.   tt : Str133;
  11. Begin
  12.   tt := txt;
  13.   FastVideo(tt, FNormal, Char_Attrib, Length(tt), Lin, 10);
  14. End;
  15.  
  16.  
  17. Function HelpKey : Boolean;
  18. {
  19. Get a key from the user.  If a space, return true, else false.
  20. }
  21. Var
  22.   x : integer;
  23. Begin
  24.   x := level1Key;
  25.   If x = 32 Then HelpKey := True Else HelpKey := False;
  26. End;
  27.  
  28.  
  29. Procedure Help_User;
  30. {
  31. Type some helpful text at the user and then re-paint the screen after he
  32. strikes any key.
  33. }
  34. Var
  35.   MoreHelp : Boolean;
  36. Begin
  37.   ClrScr;
  38.   hlpline( 1,'                                                Screen 1 of 4');
  39.   hlpline( 3,'              Help for Turbo DIAL V2.2                       ');
  40.   hlpline( 5,'This program presents a screen oriented interface for dialing');
  41.   hlpline( 6,'a  HAYES  modem.   It reads a text file named DIALNUM.TXT for');
  42.   hlpline( 7,'the phone directory. The DOS env var DIAL is used to make the');
  43.   hlpline( 8,'complete name, or just the current dir.   Use a letter or the');
  44.   hlpline( 9,'editing keypad to select the phone number with which to  dial');
  45.   hlpline(10,'the  HAYES.   The number will then be dialed.  Strike any key');
  46.   hlpline(11,'during actual dialing to abort the  call.    Once  the  party');
  47.   hlpline(12,'answers, a  carriage return will be sent three times to auto-');
  48.   hlpline(13,'baud the  destination.   Then the command  line given  in the');
  49.   hlpline(14,'menu  will be passed to DOS.  This usually invokes a terminal');
  50.   hlpline(15,'or protocol  program such as LCTERM, TC, MINITEL,  KERMIT, or');
  51.   hlpline(16,'others.   Your session  is then  as if DIAL  was not present.');
  52.   hlpline(17,'When you end your remote session and exit the invoked program');
  53.   hlpline(18,'you will be returned to  DIAL and can make  another selection');
  54.   hlpline(19,'or exit.                                                     ');
  55.   hlpline(23,'Type a space for more help, any other key to return to DIAL. ');
  56.  
  57.   MoreHelp := HelpKey;
  58.   If MoreHelp Then Begin
  59.  
  60.   ClrScr;
  61.   hlpline( 1,'                                                Screen 2 of 4');
  62.   hlpline( 3,'To make a DIALNUM.TXT file, use  your  favorite  editor,  and');
  63.   hlpline( 4,'make  3  line  entries.  DIAL currently supports 100 entries.');
  64.   hlpline( 5,'The first letter of each line is a "record type" or key.  The');
  65.   hlpline( 6,'second character is usually a "=" but can be anything - it is');
  66.   hlpline( 7,'not checked.  Currently the good letters are N, D, and C.   N');
  67.   hlpline( 8,'is  the  number,  D is the description, and C is the command.');
  68.   hlpline( 9,'Lines beginning with ";" or "!" are comments and are ignored.');
  69.   hlpline(10,'Blank lines are also ignored.  Sample of a DIALNUM.TXT file. ');
  70.   hlpline(12,'        ;Comment line with any text you wish                 ');
  71.   hlpline(13,'        D=test entry                                         ');
  72.   hlpline(14,'        N=1234567                                            ');
  73.   hlpline(15,'        C=Kermit Connect                                     ');
  74.   hlpline(17,'        ;Another sample entry, with a Hayes specific char    ');
  75.   hlpline(18,'        D=MARKET                                             ');
  76.   hlpline(19,'        N=1,6174677437                                       ');
  77.   hlpline(20,'        C=Kermit Connect                                     ');
  78.   hlpline(23,'Type a space for more help, any other key to return to DIAL. ');
  79.  
  80.   MoreHelp := HelpKey;
  81.   End;
  82.   If MoreHelp Then Begin
  83.  
  84.   ClrScr;
  85.   hlpline( 1,'                                                Screen 3 of 4');
  86.   hlpline( 3,'The keys used to select an entry from the menu are:          ');
  87.   hlpline( 5,'       Up Arrow                Previous entry                ');
  88.   hlpline( 6,'       Down Arrow              Next entry                    ');
  89.   hlpline( 7,'       Previous Screen         Previous screen of entries    ');
  90.   hlpline( 8,'       Next Screen             Next screen of entries        ');
  91.   hlpline( 9,'       Shift Previous Screen   First screen of entries       ');
  92.   hlpline(10,'       Shift Next Screen       Last screen of entries        ');
  93.   hlpline(11,'       Cancel                  Hangup the phone              ');
  94.   hlpline(12,'       Interrupt               Push to lower shell           ');
  95.   hlpline(13,'       Help                    Gets this text                ');
  96.   hlpline(14,'       Do                      Dial highlighted entry        ');
  97.   hlpline(15,'       Return                  Same as Do                    ');
  98.   hlpline(16,'       Exit                    Exit DIAL completely          ');
  99.   hlpline(17,'       Space                   Same as Exit                  ');
  100.   hlpline(19,'or enter the letter A through S.                             ');
  101.   hlpline(23,'Type a space for more help, any other key to return to DIAL. ');
  102.  
  103.   MoreHelp := HelpKey;
  104.   End;
  105.   If MoreHelp Then Begin
  106.  
  107.   ClrScr;
  108.   hlpline( 1,'                                                Screen 4 of 4');
  109.   hlpline( 3,'This program is in the public domain and all are  welcome  to');
  110.   hlpline( 4,'use and enhance it, as long as it is distributed at no charge');
  111.   hlpline( 5,'and not used in any  commercial manner.    It is  written  in');
  112.   hlpline( 6,'TURBO Pascal V3.0  for the DEC  Rainbow  and uses the Rainbow');
  113.   hlpline( 7,'fast video and level 1 and 2  keyboard  input   capabilities.');
  114.   hlpline( 8,'Portability  was not a design goal.  Many, MANY thanks to all');
  115.   hlpline( 9,'those whose subroutines and examples I used to build this.   ');
  116.   hlpline(23,'End of help.  Stike any key to return to DIAL.               ');
  117.  
  118.   MoreHelp := HelpKey;
  119.   End;
  120. End;
  121.  
  122.