[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: CAPTURING CURSOR KEYS
- Subject: Re: CAPTURING CURSOR KEYS
- From: JOE SOLLA
- Date: 18 Aug 1990 20:39:47
Jim - Holmgren's first rule: If you upload something, make sure it works
(performs some sort of function) so the guy trying to help you can get some
idea of what you're trying to accomplish without having to puzzle thru the
code.
Now Auerbach's invention: - measure the size of the rc - if its bigger than 1
(its not a letter or a number, its a function or the carriage return), then
check it against whatever functions you will allow the user to enter (BD), if
it's bigger than 1 and not a BD, loop to your error message.
Take a look at Holmgren's dissertation on 3-byte characters (CTRLCHAR.ZIP) to
discover why using the epsilon operator and > on 3-byte characters can be
misleading. The function CU is composed of hex FF 80 67. Hex 67 is a lower case
g. Ergo if you enter a CU funtion and then use > with the epsilon operator, a
lower case g is a match.
If none of this makes sense to you, here's a little program that will first
accept only a letter or a BD, then only a number or a BD, use escape to end.
Maybe you can work it into your routine. Cheers.
*Enclosed File: ltr_num