Date: Fri, 28 Feb 1997 18:43:40 +0100 From: chojnacki Message-Id: <199702281743.SAA06012@ernie.icslab.agh.edu.pl> To: djgpp AT delorie DOT com Subject: Re: strange thing with exit(0) Eli Zaretskii wrote: > The line marked ``missing'' should make the program work. The DJGPP FAQ > list explains this in section 18.3. > void flushKeyboard() > { > _go32_dpmi_registers r; > r.h.ah=0x0c; > r.h.al=0; > r.x.ss = r.x.sp = r.x.flags = 0; <<<<<<<<<<<<<<<<<< missing line > _go32_dpmi_simulate_int(0x21,&r); > } Thank you for missing line: Above code now works perfectly. ---------------------- Tom Chojnacki s709 AT icslab DOT agh DOT edu DOT pl ----------------------