home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / kermit / nm100.arc / NM.DOC next >
Text File  |  1990-04-18  |  11KB  |  226 lines

  1.  
  2.  
  3.  
  4.  
  5.                          Num Lock Redefinition Utility
  6.                          =============================
  7.  
  8.  
  9.  
  10.                                       by
  11.  
  12.  
  13.  
  14.                                Geoffrey Furnish
  15.                                Physical Dynamics
  16.                                  P.O. Box 8556
  17.                                Austin, TX   78713
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24. FUNCTION
  25.      NM is a program which causes the Num Lock key on IBM PC, AT and extended
  26. AT keyboards to act as if it was another F1 key.  However, the combination
  27. Shift Num Lock is unaffected, and will still change the Num Lock state.
  28.  
  29.  
  30.  
  31. OPERATION
  32.      To initiate the NM program, just place it somewhere that can be accessed
  33. from your DOS path, and type NM (followed by return/enter).  You will be
  34. greeted by a short salutation, and from that point forward, your Num Lock key
  35. will function as an additional F1 key.  To recover the previous keyboard
  36. behavior, it is necessary to reboot the machine.
  37.  
  38.  
  39.  
  40. SHAREWARE
  41.      Please understand that this program is SHAREWARE.  You may share this
  42. software with your friends (or anyone else), you may upload it to buletin 
  43. boards (please do), and you may of course use it as much as you like.
  44.      However, if you do use this program, then please contribute to my efforts
  45. financially.  I suggest a contribution of $5 for those who intend to only
  46. use the executable version of this program.  Of course, I will certainly accept
  47. any remuneration, be it more or less than $5.  Individuals who would like the
  48. source code may have it for $10.  Please include a specific statement of your
  49. desire for the source, so that I may distinguish the generous from those who
  50. would like the source, and please also indicate the size disk you would like
  51. to receive.  Mail to:
  52.            Physical Dynamics / P.O. Box 8556 / Austin, TX   78713
  53.  
  54.  
  55.  
  56. MOTIVATION AND USES
  57.      This program was motivated by my frustration at not being able to use
  58. the Num Lock key for any useful purpose inside application programs.  In
  59. particular, I use the excellent public domain program Kermit quite frequently
  60. for online connection to VAX computers.  This program provides the ability
  61. to emulate the operation of VT 100 and VT 300 series terminals.  On these
  62. terminals, the key which is in the same position as the PC AT extended
  63. keyboard's Num Lock, is  a very important key (the PF1 key, or the Gold key).
  64. However, Kermit is not able to actually use the Num Lock key, so it is
  65. necessary to use some other key to serve the purpose.  Many users use
  66. the F1 key.  Also, many other terminal emulation programs which emulate
  67. the VT 100 series terminals have the same problem.
  68.      This program overcomes this difficulty and causes the Num Lock key to
  69. behave as if it were the F1 key (the F1 key is unaffected and functions
  70. normally).  Consequently, application programs which respond to the F1 key
  71. will now respond to the Num Lock key as well.
  72.  
  73.  
  74.  
  75. USE WITH MS-KERMIT
  76.      To use the Num Lock key in MS-KERMIT version 3.x and 2.32  (it may work
  77. with earlier versions too, but I'm not sure) you need to do two things.
  78.      1)  Load the NM program by typing NM from the DOS prompt.  It
  79.          will not be necessary to keep NM in your current directory,
  80.          as long as it is accessible from the DOS path.
  81.      2)  Issue an appropriate set key command(s) in Kermit.  This
  82.          is perhaps most easily accomplished from your MSKERMIT.INI
  83.          file.  Here is an excerpt from my kermit initialization file
  84.          which shows how I set up my PC AT extended keyboard:
  85.  
  86. ;
  87. ;   Setup the key definitions the way I like them.
  88. ;
  89. set key \315 \Kgold    ; F1    (using NM, Num Lock also serves as GOLD key)
  90. set key \316 \Kholdscrn    ; F2
  91. set key \317 \Kdos    ; F3
  92. set key \318 \Kexit    ; F4
  93. ;
  94. set key \4399 \Kpf2    ; grey /
  95. set key \311 \Kpf3    ; grey *
  96. set key \330 \Kpf4    ; grey -
  97. ;
  98. set key \327 \Kkp7    ; PC keypad 7
  99. set key \328 \Kkp8    ; PC keypad 8
  100. set key \329 \Kkp9    ; PC keypad 9
  101. set key \334 \Kkpminus    ; Big grey +
  102. ;
  103. set key \331 \Kkp4    ; PC keypad 4
  104. set key \332 \Kkp5    ; PC keypad 5
  105. set key \333 \Kkp6    ; PC keypad 6
  106. set key \2382 \Kkpcoma    ; ALT Big grey +
  107. ;
  108. set key \335 \Kkp1    ; PC keypad 1
  109. set key \336 \Kkp2    ; PC keypad 2
  110. set key \337 \Kkp3    ; PC keypad 3
  111. ;
  112. set key \338 \Kkp0    ; PC keypad 0
  113. set key \339 \Kkpdot    ; PC keypad .
  114. set key \4365 \Kkpenter    ; Big grey ENTER
  115. ;
  116. set key \322 \26    ; F8 = ^Z
  117. ;
  118. ; Now setup the dedicated cursor pad on the PC AT extended keyboard.
  119. ; Comment out this section if you don't have the extended keyboard.
  120. ;
  121. ; First of all, the labels on the keys from the two heyboards are:
  122. ;
  123. ;          Dec VT 200/300 series           PC AT extended keyboard
  124. ;    +----------+----------+----------+   +----------+----------+----------+
  125. ;    |   Find   |  Insert  |  Remove  |   | Insert   |  Home    |  Page    |
  126. ;    |          |   Here   |          |   |        |       |   Up     |
  127. ;    +----------+----------+----------+   +----------+----------+----------+
  128. ;    |  Select  | Previous |   Next   |   | Delete   |   End       |  Page    |
  129. ;    |          | Screen   |  Screen  |   |        |       |  Down    |
  130. ;    +----------+----------+----------+   +----------+----------+----------+
  131. ;
  132. ; I prefer to ignore the labels on my PC keytops, and use the exact layout
  133. ; of the Dec keyboards, but you may easily rearrange the following definitions
  134. ; to keep the functions assigned to the keys with similar names.  Suit yourself.
  135. ;
  136. set key \4434 \kdecfind        ; PC cursor keypad insert -> Dec Find
  137. set key \4423 \kdecinsert    ; PC cursor keypad home   -> Dec Insert Here
  138. set key \4425 \kdecremove    ; PC cursor keypad pg up  -> Dec Remove
  139. set key \4435 \kdecselect    ; PC cursor keypad delete -> Dec Select
  140. set key \4431 \kdecprev        ; PC cursor keypad end    -> Dec Prev Screen
  141. set key \4433 \kdecnext        ; PC cursor keypad pg dn  -> Dec Next Screen
  142. ;
  143. ; Now define some keys for rolling around screen memory.
  144. set key \5522 \kupone    ; PC cursor keypad ctl insert
  145. set key \5495 \khomscn    ; PC cursor keypad ctl home
  146. set key \5508 \kupscn    ; PC cursor keypad ctl pg up
  147. set key \5523 \kdnone    ; PC cursor keypad ctl delete
  148. set key \5493 \kendscn    ; PC cursor keypad ctl end
  149. set key \5494 \kdnscn    ; PC cursor keypad ctl pg dn
  150. ;
  151.  
  152.          Note that these definitions are intended to be used on a 
  153.          PC AT extended keyboard which has the separate dedicated
  154.          cursor keypad.  If you don't have such a keyboard, the last
  155.          few lines (for redefining the dedicated cursor keypad keys)
  156.          may not be of use to you.
  157.  
  158.          Note also, that the only thing here which specifically relates
  159.          to the NM program, is the use of the F1 key as the GOLD key
  160.          (first line of my example ini file).  All of the other mappings
  161.          will work whether you use NM or not.  But if you do use NM
  162.          then whenever you strike the Num Lock key, Kermit will transmit
  163.          the GOLD (PF1) key to the host.  This provides extremely close
  164.          compatibility with the Dec VT 100 and VT 300 series terminals.
  165.          The only remaining incompatibility is the oversized grey + key
  166.          on the PC.  I use ALT GREY + to be the Dec keypad comma key.
  167.  
  168.  
  169.  
  170. USE WITH OTHER PROGRAMS
  171.      I have tested NM with some other keyboard redefinition / keystroke macro
  172. utilities, but not very many.  I have encountered no dificulties so far.  The
  173. only type of programs which I anticipate there may be difficulties with, are
  174. those which seek to enlarge the keybaord buffer from the paltry 16 character
  175. buffer that IBM graced us all with, to something larger.  With such programs
  176. there is a possibility that the order of loading may affect whether NM will
  177. function correctly or not.  I have not been able to test this to date.  If you
  178. have experiences either good or bad with using NM with such programs, I would
  179. be interested in the details.
  180.      Other programs, which do not enlarge the keystroke buffer, should function
  181. with no trouble.  In particular, you should be able to use NM with other
  182. VT 100/200/300 series terminal emulation software to map Num Lock to F1 and
  183. thus to PF1.  If you have problems with a specific piece of software, I will
  184. of course try to help out.
  185.  
  186.  
  187.  
  188. ABOUT PHYSICAL DYNAMICS
  189.      Physical Dynamics is a company which I have formed for the sole purpose
  190. of generating income for myself and my family while I am in graduate school.
  191. Those of you who are or have been in graduate school, will appreciate the
  192. need for extra money.  Those who are considering going to graduate school 
  193. should be advised that the economics of putting yourself through grad school
  194. are very demanding indeed.
  195.      In any event, it is my intention to develop various programs which
  196. demonstrate the action (dynamics) of various interesting physical systems.
  197. As of this writing (April 90) I have a program which demonstrates the action
  198. of the logistic map, almost ready to post.  Specifically, this program 
  199. introduces the user to iterated function systems, the idea of a nonlinear
  200. paramater, and some of the first principles of "Chaos Science".  This program
  201. will be of interested to highly motivated high school students in physics and
  202. math, or to college age science students who would like a hands on introduction
  203. to the much talked about field of nonlinear dynamics (NLD), more commonly
  204. referred to as Chaos.  If you are interested in this program, please write.
  205.      Future plans for additional Physical Dynamics products are still very
  206. much up in the air.  If you have an idea for a physical system which can be
  207. modelled numerically by computer, and which has educational value, and which
  208. would be of interest to a reasonable number of people (by which I mean that
  209. it would be profitable!) then please let me know.  If a substantial number
  210. of requests are made for similar sounding items, that would probably influence
  211. my development efforts.
  212.      One thing I am considering is a solar system / generalized gravitational
  213. many body simulator.  Another idea I am considering is a simple introduction
  214. to motions of charged particles in E and B fields, maybe even going as far
  215. as simple plasma simulations.  There are several books on these topics, but
  216. most of them are addressed at the PhD physicist, and not at a level more 
  217. accessible to upper secondary / beginning college students.  I am of the
  218. oppinion that the physics education in our high schools could be greatly
  219. improved by taking time to introduce students to interesting and complicated
  220. problems, (perhaps with certain simplifying assumptions), and letting them
  221. do "computer experiments".  Many high schools have PC type hardware, and I
  222. believe, many of our high school students are capable of this type of learning.
  223.      If you have comments or suggestions on these or other matters, then
  224. please write.  If you would like to support endeavors such as these, then
  225. please consider supporting Physical Dynamics financially.
  226.