home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / mincom15.zip / help.c < prev    next >
C/C++ Source or Header  |  1993-10-14  |  2KB  |  65 lines

  1. /*
  2.  * This file is part of the Minicom Communications Program,
  3.  * written by Miquel van Smoorenburg 1991/1992/1993.
  4.  */
  5. #include <stdio.h>
  6. #include <sys/types.h>
  7. #include <setjmp.h>
  8. #include "window.h"
  9. #include "minicom.h"
  10. #include "configsym.h"
  11.  
  12. /* Draw a help screen and return the keypress code. */
  13. int help()
  14. {
  15.   WIN *w;
  16.   int c;
  17.   int i;
  18.  
  19. #if HISTORY
  20.   i = 1;
  21. #else
  22.   i = 0;
  23. #endif
  24.   w = wopen(6, 3, 72, 19 + i, BDOUBLE, stdattr, MFG, MBG, 0, 0, 1);
  25.   
  26.   wlocate(w, 21, 0);
  27.   wputs(w, "Minicom Command Summary");
  28.   wlocate(w, 10, 2);
  29.  
  30.   wprintf(w, "Commands can be called by %s<key>", esc_key());
  31.  
  32.   wlocate(w, 15, 4);
  33.   wputs(w, "Main Functions");
  34.   wlocate(w, 47, 4);
  35.   wputs(w, "Other Functions");
  36.   wlocate(w, 0, 6);
  37.   wputs(w, " Dialing directory..D  run script (Go)....G \263 Clear Screen.......C\n");
  38.   wputs(w, " Send files.........S  Receive files......R \263 cOnfigure Minicom..O\n");
  39.   wputs(w, " comm Parameters....P  Add linefeed.......A \263 Jump to a shell....J\n");
  40.   wputs(w, " Capture on/off.....L  Hangup.............H \263 eXit and reset.....X\n");
  41.   wputs(w, " send break.........F  initialize Modem...M \263 Quit with no reset.Q\n");
  42.   wputs(w, " Terminal emulation.T  run Kermit.........K \263 Cursor key mode....I\n");
  43.   wputs(w, " lineWrap on/off....W");
  44. #ifdef _SELECT
  45.   wputs(w, "  local Echo on/off..E \263 Help screen........Z");
  46. #else
  47.   wputs(w, "                       \263 Help screen........Z");
  48. #endif
  49. #if HISTORY
  50.   wlocate(w, 44, 13);
  51.   wputs(w, "\263 scroll Back........B");
  52. #endif
  53.  
  54.   wlocate(w, 13, 16 + i);
  55.   wputs(w, "Written by Miquel van Smoorenburg 1992/1993");
  56.   wlocate(w, 6, 14 + i);
  57.   wputs(w, "Select function or press Enter for none.");
  58.   
  59.   wredraw(w, 1);
  60.  
  61.   c = getch();
  62.   wclose(w, 1);
  63.   return(c);
  64. }
  65.