Getting single events from function keys in SunView

Fred Clauss fredc at umrisca.isc.umr.edu
Tue Jul 31 17:16:55 AEST 1990


I am editing some text in a canvas window (not using pw_text), and I want
to treat input from the cursor movement keys (R8, R10, R12, &R14)
intelligently.  When I set the input mask to let these keys through, I get
escape sequences.  After reading the SunView Programmer's Guide, it seems
readily apparent that this is the default, as it says that the event codes
for the function keys will only be returned when they are asked for
explicitly.  What does it mean?  Does it mean that "the notifier" cannot
handle the cursor/function keys as a single event?  If not, how do you
tell the notifier that you want the event codes rather than escape
sequences?  If so, that means I have to decode escape sequences coming
from the notifier to find out which key has been pressed.  If this is the
case, what good is the notifier?  And why haven't they built this
capability into it?

Thanks in advance,

Fred Clauss                  INTERNET:  fredc at isc.umr.edu (preferred)
Intelligent Systems Center    		or flc at umree.ee.umr.edu
University of Missouri        UUNET:	{occrsh|sunarch}!umree!flc
Rolla, MO 65401		     BITNET:    S081192 at UMRVMA



More information about the Comp.sys.sun mailing list