home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / less3292.zip / pckeys.h < prev    next >
Text File  |  1996-08-15  |  2KB  |  48 lines

  1. /*
  2.  * Copyright (c) 1984,1985,1989,1994,1995,1996  Mark Nudelman
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms, with or without
  6.  * modification, are permitted provided that the following conditions
  7.  * are met:
  8.  * 1. Redistributions of source code must retain the above copyright
  9.  *    notice, this list of conditions and the following disclaimer.
  10.  * 2. Redistributions in binary form must reproduce the above copyright
  11.  *    notice in the documentation and/or other materials provided with 
  12.  *    the distribution.
  13.  *
  14.  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
  15.  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  16.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
  17.  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
  18.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
  19.  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 
  20.  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
  21.  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
  22.  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 
  23.  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 
  24.  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25.  */
  26.  
  27. /*
  28.  * Definitions of keys on the PC.
  29.  * Special (non-ASCII) keys on the PC send a two-byte sequence,
  30.  * where the first byte is 0 and the second is as defined below.
  31.  */
  32. #define    PCK_SHIFT_TAB        '\017'
  33. #define    PCK_ALT_E        '\022'
  34. #define    PCK_F1            '\073'
  35. #define    PCK_HOME        '\107'
  36. #define    PCK_UP            '\110'
  37. #define    PCK_PAGEUP        '\111'
  38. #define    PCK_LEFT        '\113'
  39. #define    PCK_RIGHT        '\115'
  40. #define    PCK_END            '\117'
  41. #define    PCK_DOWN        '\120'
  42. #define    PCK_PAGEDOWN        '\121'
  43. #define    PCK_INSERT        '\122'
  44. #define    PCK_DELETE        '\123'
  45. #define    PCK_CTL_LEFT        '\163'
  46. #define    PCK_CTL_RIGHT        '\164'
  47. #define    PCK_CTL_DELETE        '\223'
  48.