screen flashing (fwd)
Posted in 1993
Quoting a whole lot of people(s): > Jack, > > Just saw your second posting on screen flashing hit the mailing list (I've > GOT* to get out of here!). Anyway I hadn't posted anything to the list on > it because I vaguely (sp?) recalled seeing something on the list a while back > on the subject, and I was too lazy to look it up so I wouldn't appear too > dumb. When I saw you quoting me, I figured I better do some checking. > > Anyway, I grepped around in the archive and found the following messages from > December of 1991 (some of the headers are in an old style): > | > | From: dave@das13.snide.com (Dave Snyder) > | > | > Does anyone know if there is a way to run a unix command without the > | > screen blinking/Flashing in Informix 4gl ? > | > > | What we did was to call a C function that executes a "system" on the passed ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > | in string. Much stuff deleted... Thank you Walt ! - and Dave and others. enclosed is same c routine: ______________________________________________________________________________ /* run_cmn - run an OS command. To replace the 4GL RUN command which clears the screen. syntax is CALL run_cmn(command, length(command)+1) returning int */ run_cmd(arg) { char cmd[80]; int siz, retcode; popint(&siz); popquote(cmd,siz); retcode=system(cmd); retint(retcode); return(1); } _____________________________________________________________________________ Works like a champ. On the same subject. If you display directly to the screen with a 'DISPLAY string', it will clear the screen to display your string. If you 'DISPLAY string AT y,x' it will work fine. (Caused me heartache as I tested the return code by 'DISPLAY retcode' just after my OS call - thought we had the wrong solution) Again, much obliged. j. _____________________________________________________________________________ Jack Parker - Contractor | "I wanna walk like you Hewlett Packard, BSMC Boise, Idaho, USA| talk like you jparker@hpbs2651.boi.hp.com | toooooooo." (208) 323-5388 (W) (208) 384-1623 (H) | - King Louie _____________________________________________________________________________