Re: Leaving 4GL and returning from O/S
Posted in 1994
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. This may be a bug on your version or platform; I do a similar thing with no problem. Are you sure the TERM and TERMCAP you have set while in 4GL is ok? i.e.: Does running vi on the same file straight from the OS work ok? If DISPLAY "" help, try a CLEAR SCREEN just to see what happens then. >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. The RUN command, when used without the WITHOUT WAITING clause, should repaint the screen for you. If not satisfactory, try CURRENT WINDOW IS SCREEN. >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 >-- ================ Dennis J. Pimple Informix CSE / Denver 303-850-0210