home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / library / dos / keyboard / kbdhdr / kbdhdr.doc next >
Text File  |  1991-03-16  |  3KB  |  93 lines

  1. *******************************************************************************
  2. *                                   kbdHdr                                    *
  3. * keyBoard symbolic readKey, and simple ungetch function, Loewy Ron, 1991. V3 *
  4. * Last update : Mar. 16, 1991.                                                *
  5. *******************************************************************************
  6.  
  7. Introduction
  8. ------------
  9.  
  10.   Have you ever tried to read the keyBoard input using TP's infamous readKey
  11.  procedure? of course you did, everyone does. And what happened if the user
  12.  pressed Fx, or Alt-something - ReadKey returned 0 - and everything went wrong.
  13.  
  14.   The solution is simple - test for a 0, and if it is - call readKey again (To
  15.  find out what it was). well - I think I've written this procedure about a ...
  16.  (no - actually just half of that, but it still is boring and irritating), so
  17.  one day I sat down to write my ultimate keyboard input routine - and here
  18.  it is - The amazing getKey function - that returns in 1 character (if used
  19.  with kbdHdr's constants) - almost every key combination on the keyBoard.
  20.  
  21.   In the process a simple unget char routine was added (unGetKey), and 2 
  22.  different simple keyboard flush routines.
  23.  
  24.   Now days I use kbdHdr in almost all of my TP programs, shareware and PD 
  25.  programs I released that use this unit include - 3D110, TXS11, APP14, JM100
  26.  etc..
  27.  
  28. Technical Documantation
  29. -----------------------
  30.  
  31.   Come on men - the source is provided and is as simple as can be.. it is
  32.  nothing more then a nice easy way to simplify ones keyboard handling.
  33.  
  34. Warranty
  35. --------
  36.  
  37.   There is no warranty what so ever, The unit and docs. are supplied as is,
  38.  The author (Loewy Ron), is not, and will not be responsible for any damages,
  39.  lost profits, or inconveniences caused by the use, or inability to
  40.  use this unit. The use of the unit is at your own risk. By using the unit
  41.  you agree to this.
  42.  
  43. General
  44. -------
  45.  
  46.    kbdHdr is copyrighted by myself, (c) Loewy Ron, 1991. I release
  47.  the source, and it can be used for commercial and non-commercial programs,
  48.  The only restriction is that I should be a registered user of any commercial
  49.  product that uses this library, and would be given credit for kbdHdr.
  50.  
  51.   No one but myself, (if I will) is allowed to charge money for kbdHdr, 
  52.  except then minimal distribution fees.
  53.  
  54. Contact
  55. -------
  56.  
  57.   You can contact me on what-ever you want to at my address at :
  58.  
  59.         Loewy Ron,
  60.         9 Haneveem st.
  61.         Herzeliya, 46465
  62.         ISRAEL.
  63.  
  64.    OR 
  65.  
  66.         Loewy Ron, 
  67.         Apt. 1,
  68.         20 Smolanskin st.
  69.         Haifa, ISRAEL.
  70.  
  71.   Other programming units available from me include :
  72.  
  73.   mouseLib3 - an event driven mouse unit library.
  74.   tpDESQ11  - a DESQview interface library. (just some portions of the API).
  75.  
  76.   Other public-domain, freeware and shareware programs by the same author
  77.  include :
  78.  
  79.   JM100         : Jumpin' math - a popup scientific calculator.
  80.   TXS11         : TeXt Search program.
  81.   3D110         : WWToolKit 3D demo applocation.
  82.   WWToolKit     : OOPS GUI Turbo-Pascal library. (with Ishai Ben-Aroya).
  83.   MONITOR       : Popup memory monitor.
  84.   APP14         : Application Programable Pilot - menu system.
  85.  
  86. Credits
  87. -------
  88.  
  89.   Turbo-Pascal is a copyright of Borland International. 
  90.  
  91.   DESQview is a copyright of Quarterdeck Office Systems.
  92. 
  93.