Re: Leaving 4GL and returning from O/S - SOLVED!!!!!
Posted in 1994
Topics: Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL, Jobs, Consulting & Announcements
In article <2jg5jd$kch@delphinium.cig.mot.com> tomlnsn@rtsg.mot.com (Dave Tomlinson) writes: >In article <CKytns.MBt@balr.com>, doc@balr.com (David R. Gilbert) writes: >|> >|> 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? >|> >|[stuff deleted] >|> >|> - 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 > >Try >LET unixcmd = "sh -c 'vi ", filename CLIPPED, "'" > >If you are unable, programmatically, to remedy this situation, it probably is >a TERMCAP/TERMINFO problem. Then it is platform/release dependent. Check the Yeah! This worked!! [stuff deleted] > >Any screen activity, after the 'vi' session, should redisplay the screen as it >was before the 'vi' session. > >Try >MESSAGE "" > >Your screen should redisplay. > >DCT This worked, too. Apparently, using 'sh' before the 'vi' did the trick. My problem is solved and my client is happy. :) Thanks to everyone who replied on this issue. In case you were wondering, my platform is: ESIX 386 Informix-4GL 4.10.UC1 Informix-OnLine 4.10.UC1 Thanks again for all your help, especially Dave Tomlinson. -- - 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