Path: utzoo!attcan!uunet!mcvax!enea!kth!draken!duvan!drs-ano From: drs-ano@duvan.nada.kth.se (Gunnar Nordmark) Newsgroups: comp.sys.amiga Subject: Using Software Interrupts for Menu Handling Summary: How do I abort a fgets() from within an interrupt? Keywords: console packets, intuition menus, interrupts Message-ID: <416@draken.nada.kth.se> Date: 16 Jun 88 13:10:13 GMT Sender: news@nada.kth.se Reply-To: G@epsilon.stacken.kth.se (Gunnar Nordmark) Organization: The Royal Inst. of Techn., Stockholm Lines: 17 I have set up a IDCMP port that generates software interrupts when messages arrive. It works great! The window is opened with CON: and I have it as stdin for the program. When you call fgets(buf,stdin) the program requests input from CON: and goes to sleep until you type a . The problem is that if you select QUIT from the menu, you would like to leave the program instantly, not after the fgets() has returned. Is there a way to abort the fgets()? Can I send a packet to the device driver that forces it to return my readrequest with an error? Carolyn? Andy? (or some other CON: packet wizard?) SNAIL: Gunnar Nordmark VOICE: (+46) 8 - 755 42 52 Nora strand 5 S-182 34 DANDERYD EMAIL: G@epsilon.stacken.kth.se SWEDEN nordmark@vaxkab.sunet.se