issue with USER... need help.

Fairlight fairlite at fairlite.com
Mon May 21 22:18:07 PDT 2012


I used to use USER a long time ago.  It's not that complex.  I'm running
into an issue on a SCO OSR5 box, though.  I'm hitting the same issue with
fP 4.8 and 5.0.x, so if anything I'm suspecting the environment somehow.
But here's the code:

@wef1::user flprog="/bin/cat /etc/group":
::'user flprog="/bin/some_interactive_program"::
:not flprog:msgbox "Program did not start correctly.":
:flprog:aa=flprog ; msgbox aa:
::input popup bb "Text to send: ":
:bb eq "fltquit":msgbox "Quitting." ; delete; exit:
:not flprog:msgbox "Program exited prematurely." ; delete ; exit:
:flprog:flprog=bb:
::goto @wef1:
::end:

I just go into add records to test it.  It's a test table meant for nothing
but testing the code and interaction.

The issue is that the only thing that shows up is trash in the messagebox.
It looks like a bunch of ASCII representations of termcap codes.  But this
happens no matter what program I run.  If it's my own program, it happens.
If it's cat, it happens.  If it's ls, it happens.

Here's an example from trying to cat a file:

?[24;15H?[0m?[1m?[37m?[44m
?[24;01H?[0m?[37m?[40m?[0m?[37m?[40m?[0;0H?[2J?[0m?[37m?[40m?[0;0H 
[2J?[01;01H?[0m?[37m?[40m?[0;0H?[2J?[01;01H?[0m?[37m?[40m?[?1l        

That's the contents of aa on the first read, kid you not.  :(  That's what
MSGBOX is putting up.  Same with SHOW.

This is -really- drop dead simple, and I can't figure out why it'd acting
all fritzy on me.  Someone please give me some idea why it's acting like
this?

Thanks!

mark->
-- 
Fairlight->   ||| "What's so civil about war,        | Fairlight Consulting
  __/\__      ||| anyway?" --Guns 'n' Roses          | http://www.fairlite.com
 <__<>__>     |||                                    | fairlite at fairlite.com
    \/        |||                                    | (502) 509-3840


More information about the Filepro-list mailing list