🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #249

Need help writing Front End

#249
From: David Lutz
Date: Sun, 05 Apr 1992 23:24
23 lines
946 bytes
Hello--
  I am trying to write a front end for a program and I need some help.

   The idea is something like this.

     FILE *pipe = popen( "program", "rw" );


     while ( test )
     {
        read from pipe only if data is waiting to be read.
        process data.
        read from stdin only if data ready
        process keystokes and send out on the pipe
     }

I assume this needs some kind of non-blocking io calls for the streams,
but I am not sure how to go about doing this.
 
Any help would be appreciated.   Thanks

D.L.
Technical Details
Message-ID: <1992Apr5.232443.12931@willamette.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!willamette.edu!dlutz

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!willamette.edu!dlutz
From: dlutz@willamette.edu (David Lutz)
Newsgroups: comp.unix.programmer
Subject: Need help writing Front End
Keywords: Front-End stdin stdout
Message-ID: <1992Apr5.232443.12931@willamette.edu>
Date: 5 Apr 92 23:24:43 GMT
Article-I.D.: willamet.1992Apr5.232443.12931
Organization: Willamette University, Salem, OR
Lines: 23