Re: Leaving 4GL and returning from O/S
Posted in 1994
johnl@informix.com (Jonathan Leffler) wrote: > >Which version of 4GL? Which platform? > >Yours, >Jonathan Leffler (johnl@informix.com) #include ><disclaimer.h> > >}From ilist@rmy.emory.edu Thu Feb 10 15:42:14 1994 >}From: doc@balr.com (David R. Gilbert) >}Message-Id: <CKytns.MBt@balr.com> >}Subject: Leaving 4GL and returning from O/S >}Date: Wed, 9 Feb 1994 16:26:16 GMT >}Organization: BALR Corporation >}Sender: informix-list-owner@rmy.emory.edu >}To: informix-list@rmy.emory.edu >}X-Informix-List-To: >eu-informix-distr@inflon.informix.com >}X-Informix-List-Id: <news.5496> >} >} >}Fellow Informix folk: >}I'm having a problem with the following 4GL code: } >} FUNCTION edit_note ( filename ) >} >} DEFINE filename CHAR (30) >} DEFINE unixcmd CHAR (60) >} >} LET unixcmd = "vi ", filename CLIPPED } >} RUN unixcmd >} >} END FUNCTION >} >}When 'vi' appears on the screen, Informix has not >'released' it from }curses mode - In other words, it's >a mess. } >}My questions is: How to I tell Informix that I need >it to 'release' }the screen temporarily, run the >command, and then return to normal? } >}I tried putting 'DISPLAY ""' before the run statement >and it seemed }to work a little better. >} >}I also need a easy way to re-display the Informix-4GL >screen after the }command returns. >} >}Any help would be *most* appreciated! Thanks in >advance. } >}- Dave >}(Doctor) David R. Gilbert (doc@balr.com) Consultant >- BALR Corporation }UUCP: ...uunet!balr.com!doc >Snail: 600 Enterprise, Oak Brook IL 60521 >} "Can't stop moving. Can't stop moving. Can't stop." >- NP of Rush }-- >}- Dave >}(Doctor) David R. Gilbert (doc@balr.com) Consultant >- BALR Corporation }UUCP: ...uunet!balr.com!doc >Snail: 600 Enterprise, Oak Brook IL 60521 >} "Can't stop moving. Can't stop moving. Can't stop." >- NP of Rush Hello, I used command similar to yours before. I didn't have any problem and my screen automatically restored to the original state but you can always hit control-r to refresh. However, did you try this "clear;sh vi <filename>" which clear the screen first then sh will start you up with new process for vi which is better in my opinion. Try it if you dare. Edmond Ying