Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!unido!qtecmuc!ger From: ger@qtecmuc.UUCP Newsgroups: comp.sys.atari.st Subject: Re: Control-F1, Alt-F1 ??? - (nf) Message-ID: <19400007@qtecmuc.UUCP> Date: Mon, 29-Jun-87 06:35:00 EDT Article-I.D.: qtecmuc.19400007 Posted: Mon Jun 29 06:35:00 1987 Date-Received: Fri, 3-Jul-87 05:13:46 EDT References: <19400005@qtecmuc.UUCP> Lines: 19 Nf-ID: #R:qtecmuc:19400005:qtecmuc:19400007:000:761 Nf-From: qtecmuc!ger Jun 29 11:35:00 1987 in article <19400005@qtecmuc.UUCP>, ger@qtecmuc.UUCP says: > does anyone know, if there is a way to distinguish between > Functionkey F1, ALT-F1 and CTRL-F1 using C (MWC). > All routines like Bconin or Crawcin don't make a difference at all. ... state when the key was hit. You tell the OS to put the shift key state in that byte by setting bit 3 in the (published) system variable "conterm" to 1 (that is, *(char *)0x484 |= 4;). Better clear it again before your program exits, though, because the desktop might not be able to handle it (use *(char *)0x484 &= ~4;). Thank you, it (almost) works fine !!! But it should be '|= 8' and '&= ~8' in your examples. ^ ^ Gerhard Pehland UUCP: ...!seismo!unido!qtecmuc!ger