Date: Wed, 8 Sep 93 10:35:56 +0200 From: vincent AT physique DOT ens DOT fr (CROQUETTE Vincent) To: djgpp AT sun DOT soe DOT clarkson DOT edu Joe Clark writes : >subject: system() call, new releases >I just started playing with the system() call the other day and >I noticed that the system hangs (in graphics mode at least) if I >call getkey() at any point in the program after the system() call. >I'm using djgpp1.09 and libgrx1.02. >If this is a bug and not my own mistake is this fixed in >later releases (I saw something in NEW110.DOC about fixing >the system paging bug). you may be doing the same mistake than i was : keybord and mouse event are trapped in GRX (if you use MouseEventMode(1)), before the system call you MUST do a MouseUnInit, (this could be added in GRX doc) here is an example : GrSetMode(GR_default_text); MouseUnInit(); /* if you forget this you loose keyboard ! */ system(cmd); GrSetMode(GR_default_graphics); MouseEventEnable(M_KEYPRESS,M_BUTTON_DOWN); MouseEventMode(1); MouseInit(); MouseSetColors(GrAllocColor(255,0,0),GrBlack()); MouseDisplayCursor(); vincent Croquette vincent AT physique DOT ens DOT fr