home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!purdue!mentor.cc.purdue.edu!comm.mgmt.purdue.edu!landers.mgmt.purdue.edu!landers
- From: landers@comm.mgmt.purdue.edu (Chris Landers)
- Subject: CLIPPER (S'87) Inkey() values for Alt-Keys
- Summary: Here's the table the docs left out....
- Sender: news@comm.mgmt.purdue.edu (News owner)
- Message-ID: <landers.161.728081203@comm.mgmt.purdue.edu>
- Date: Tue, 26 Jan 1993 20:46:44 GMT
- Lines: 59
- Organization: Krannert Graduate School of Management, Purdue University
-
-
- ATTN: CLIPPER USERS:
-
- The manual S'87 says inkey() returns values for alt-letter keys,
- and claims the values can be found in the appendex. In fact, the
- appendix mearly contains values for function, shift-function,
- ctrl-function, alt-function, SOME ctrl-letter keys, and a standard
- ASCII table. _NO_ listing of alt-letter key values.
-
- I wrote a quick program to trap the alt-letter key values and
- below are the results. Since I spend an hour or so on this I thought
- I'd share it and maybe save you some time too. My goal was to
- assign a procedure to alt-E, which I have been able to do.
-
- humm... I just noticed that my manual at work is S'87, while my manual at
- home has the '88 update pages, this may be part of my problem....)
- Anyway, the manual (again S'87) says inkey() return values range from
- -39 to 386, where the negative numbers are for function keys.
- You'll notice that 386-255=131 and the table below has only 26 values on it.
- Anyone else know what are the other values for > 255 ??
-
- Also, anyone know why these aren't in sequence? Looks to me like
- they just go across the keyboard rather than through the char set.
-
- Alt-A = 286
- Alt-B = 304
- Alt-C = 0 * I couldn't get a response here, even with setcancel()
- Alt-D = 0 * and alt() both off, my guess is inkey() ignores these....
- Alt-E = 274
- Alt-F = 289
- Alt-G = 290
- Alt-H = 291
- Alt-I = 279
- Alt-J = 292
- Alt-K = 293
- Alt-L = 294
- Alt-M = 306
- Alt-N = 305
- Alt-O = 280
- Alt-P = 281
- Alt-Q = 272
- Alt-R = 275
- Alt-S = 287
- Alt-T = 276
- Alt-U = 278
- Alt-V = 303
- Alt-W = 273
- Alt-X = 301
- Alt-Y = 277
- Alt-Z = 300
-
- =============================================================================
-
-
- <================================><=================================>
- || Christopher Landers || Purdue University - KRAN 708 ||
- || Krannert Computing Center || West Lafayette, IN 47907 ||
- <=================== landers@comm.mgmt.purdue.edu ==================>
-
-