home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / BSRC_250.LZH / KEYFNCS.H < prev    next >
Text File  |  1991-09-15  |  9KB  |  135 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*  (C) Copyright 1987-91, Bit Bucket Software Co., a Delaware Corporation. */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*                Function definitions used in BinkleyTerm                  */
  14. /*                                                                          */
  15. /*                                                                          */
  16. /*    For complete  details  of the licensing restrictions, please refer    */
  17. /*    to the License  agreement,  which  is published in its entirety in    */
  18. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.250.    */
  19. /*                                                                          */
  20. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  21. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  22. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  23. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  24. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  25. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  26. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  27. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  28. /*                                                                          */
  29. /*                                                                          */
  30. /* You can contact Bit Bucket Software Co. at any one of the following      */
  31. /* addresses:                                                               */
  32. /*                                                                          */
  33. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:343/491             */
  34. /* P.O. Box 460398                AlterNet 7:491/0                          */
  35. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  36. /*                                Internet f491.n343.z1.fidonet.org         */
  37. /*                                                                          */
  38. /* Please feel free to contact us at any time to share your comments about  */
  39. /* our software and/or licensing policies.                                  */
  40. /*                                                                          */
  41. /*--------------------------------------------------------------------------*/
  42.  
  43. /* Unattended mode command keys */
  44.  
  45. #define F_UN_BASE          0xfe00            /* Base of unattended mode fns */
  46. #define F_UN_ANSWER        (F_UN_BASE+0x00)  /* Send answer string to modem */
  47. #define F_UN_REINITMODEM   (F_UN_BASE+0x01)  /* User wants to reinit modem  */
  48. #define F_UN_CALLRIGHTNOW  (F_UN_BASE+0x02)  /* Call next eligible node now */
  49. #define F_UN_POLLBOSS      (F_UN_BASE+0x03)  /* Poll the bossnode           */
  50. #define F_UN_POLLNODE      (F_UN_BASE+0x04)  /* Poll a specified node       */
  51.  
  52. #define F_UN_TERMINALMODE  (F_UN_BASE+0x10)  /* Exit mailer, enter terminal */
  53. #define F_UN_MSGEDITOR     (F_UN_BASE+0x11)  /* Spawn user's editor         */
  54. #define F_UN_EXITBINK      (F_UN_BASE+0x12)  /* Exit BinkleyTerm            */
  55.  
  56. #define F_UN_FUNKEY1       (F_UN_BASE+0x21)  /* Exit with errorlevel 10     */
  57. #define F_UN_FUNKEY2       (F_UN_BASE+0x22)  /* Exit with errorlevel 20     */
  58. #define F_UN_FUNKEY3       (F_UN_BASE+0x23)  /* Exit with errorlevel 30     */
  59. #define F_UN_FUNKEY4       (F_UN_BASE+0x24)  /* Exit with errorlevel 40     */
  60. #define F_UN_FUNKEY5       (F_UN_BASE+0x25)  /* Exit with errorlevel 50     */
  61. #define F_UN_FUNKEY6       (F_UN_BASE+0x26)  /* Exit with errorlevel 60     */
  62. #define F_UN_FUNKEY7       (F_UN_BASE+0x27)  /* Exit with errorlevel 70     */
  63. #define F_UN_FUNKEY8       (F_UN_BASE+0x28)  /* Exit with errorlevel 80     */
  64. #define F_UN_FUNKEY9       (F_UN_BASE+0x29)  /* Exit with errorlevel 90     */
  65. #define F_UN_FUNKEY10      (F_UN_BASE+0x2a)  /* Exit with errorlevel 100    */
  66.  
  67. #define F_UN_SHELL         (F_UN_BASE+0x30)  /* Shell to OS command line    */
  68. #define F_UN_SHELL1        (F_UN_BASE+0x31)  /* Spawn user-command 1        */
  69. #define F_UN_SHELL2        (F_UN_BASE+0x32)  /* Spawn user-command 2        */
  70. #define F_UN_SHELL3        (F_UN_BASE+0x33)  /* Spawn user-command 3        */
  71. #define F_UN_SHELL4        (F_UN_BASE+0x34)  /* Spawn user-command 4        */
  72. #define F_UN_SHELL5        (F_UN_BASE+0x35)  /* Spawn user-command 5        */
  73. #define F_UN_SHELL6        (F_UN_BASE+0x36)  /* Spawn user-command 6        */
  74. #define F_UN_SHELL7        (F_UN_BASE+0x37)  /* Spawn user-command 7        */
  75. #define F_UN_SHELL8        (F_UN_BASE+0x38)  /* Spawn user-command 8        */
  76. #define F_UN_SHELL9        (F_UN_BASE+0x39)  /* Spawn user-command 9        */
  77.  
  78. #define F_UN_GETFILE       (F_UN_BASE+0x40)  /* Get a file from somebody    */
  79. #define F_UN_SENDFILE      (F_UN_BASE+0x41)  /* Send a file to somebody     */
  80. #define F_UN_KILLNODESMAIL (F_UN_BASE+0x42)  /* Kill all mail to somebody   */
  81.  
  82. #define F_UN_HELPSCREEN    (F_UN_BASE+0x50)  /* Bring up mailer helpscreen  */
  83. #define F_UN_BLANKSCREEN   (F_UN_BASE+0x51)  /* Force the screen to blank   */
  84. #define F_UN_REPAINTSCREEN (F_UN_BASE+0x52)  /* Repaint the hosed screen    */
  85.  
  86. #define F_UN_CLEARHIST     (F_UN_BASE+0x60)  /* Reset Today-At-A-Glance     */
  87. #define F_UN_RESTARTEVENTS (F_UN_BASE+0x61)  /* Restart nonforced events    */
  88. #define F_UN_QUITTHISEVENT (F_UN_BASE+0x62)  /* End this event now          */
  89.  
  90. #define F_PEND_DNAR        (F_UN_BASE+0x70)  /* Scroll Pending down 1 line  */
  91. #define F_PEND_UPAR        (F_UN_BASE+0x71)  /* Scroll Pending up 1 line    */
  92. #define F_PEND_PGDN        (F_UN_BASE+0x72)  /* Scroll Pending down 4 lines */
  93. #define F_PEND_PGUP        (F_UN_BASE+0x73)  /* Scroll Pending up 4 lines   */
  94. #define F_PEND_HOME        (F_UN_BASE+0x74)  /* Scroll Pending to top       */
  95. #define F_PEND_END         (F_UN_BASE+0x75)  /* Scroll Pending to bottom    */
  96.  
  97. /* Terminal mode command keys */
  98.  
  99. #define F_TERM_BASE        0xfd00            /* Base for all term mode fns  */
  100. #define F_TERM_SETBAUD     (F_TERM_BASE+0x00)/* Set baudrate on this port   */
  101. #define F_TERM_COMMCONFIG  (F_TERM_BASE+0x01)/* Set data and stop bits      */
  102. #define F_TERM_DOBREAK     (F_TERM_BASE+0x02)/* Toggle break on/off         */
  103. #define F_TERM_CHANGEPORT  (F_TERM_BASE+0x03)/* Change the port we're using */
  104.  
  105. #define F_TERM_REINITMODEM (F_TERM_BASE+0x10)/* Send init string to modem   */
  106. #define F_TERM_HANGUP      (F_TERM_BASE+0x11)/* Drop DTR to hang up modem   */
  107.  
  108. #define F_TERM_DIALOUT     (F_TERM_BASE+0x20)/* Dial a specified number     */
  109. #define F_TERM_DIALGROUP   (F_TERM_BASE+0x21)/* Dial a hunt group           */
  110. #define F_TERM_POLLBOSS    (F_TERM_BASE+0x22)/* Poll the bossnode           */
  111. #define F_TERM_POLLNODE    (F_TERM_BASE+0x23)/* Poll a specified node       */
  112.  
  113. #define F_TERM_DOWNLOAD    (F_TERM_BASE+0x30)/* Download a file from remote */
  114. #define F_TERM_UPLOAD      (F_TERM_BASE+0x31)/* Upload a file to remote     */
  115. #define F_TERM_CAPTUREFILE (F_TERM_BASE+0x32)/* Open/close text capture file*/
  116. #define F_TERM_GATEWAYMODE (F_TERM_BASE+0x33)/* Don't map keyboard          */
  117.  
  118. #define F_TERM_MACRO1      (F_TERM_BASE+0x41)/* Transmit user string 1      */
  119. #define F_TERM_MACRO2      (F_TERM_BASE+0x42)/* Transmit user string 2      */
  120. #define F_TERM_MACRO3      (F_TERM_BASE+0x43)/* Transmit user string 3      */
  121. #define F_TERM_MACRO4      (F_TERM_BASE+0x44)/* Transmit user string 4      */
  122. #define F_TERM_MACRO5      (F_TERM_BASE+0x45)/* Transmit user string 5      */
  123. #define F_TERM_MACRO6      (F_TERM_BASE+0x46)/* Transmit user string 6      */
  124. #define F_TERM_MACRO7      (F_TERM_BASE+0x47)/* Transmit user string 7      */
  125. #define F_TERM_MACRO8      (F_TERM_BASE+0x48)/* Transmit user string 8      */
  126. #define F_TERM_MACRO9      (F_TERM_BASE+0x49)/* Transmit user string 9      */
  127.  
  128. #define F_TERM_CLEARSCREEN (F_TERM_BASE+0x50)/* Erase the messy screen      */
  129. #define F_TERM_HELPSCREEN  (F_TERM_BASE+0x51)/* Bring up terminal helpscreen*/
  130. #define F_TERM_VERSION     (F_TERM_BASE+0x52)/* Display Bink version        */
  131.  
  132. #define F_TERM_MAILERMODE  (F_TERM_BASE+0x60)/* Exit terminal, enter mailer */
  133. #define F_TERM_EXITBINK    (F_TERM_BASE+0x61)/* Exit BinkleyTerm            */
  134. #define F_TERM_SHELL       (F_TERM_BASE+0x62)/* Shell to OS command line    */
  135.