unix c help

mercer at npdiss1.StPaul.NCR.COMDanMercer mercer at npdiss1.StPaul.NCR.COMDanMercer
Tue Jul 10 04:28:31 AEST 1990


In article <1950 at novavax.UUCP> raab at novavax.UUCPMoshe Raab) writes:
:i have been coding in c for a number of years. all of this
:time i have been programming using MSC, using the MS extensions.
:recently,  i installed  Mark Williams Coherent (unix like)
:operating system. i started writing  my own simple communications
:program but have hit some unexpected snags. for example, how does
:one monitor the keyboard and the com port at the same time.
:in MSC i use, kbhit(). i could theoretically write my own
:kbhit in assemlby using the bios call to interrup 0x16 but
:that would make it unportable. if any one has any suggestions,
:please let me know.
: 
:also, could someone send or refer me to the source code
:for a communications program?
: 
:i would appreciate all help.
: 
:thanks
: 
:moshe raab
:(raab at novavax)

If this truly is UNIX,  then you don't monitor the keyboard and line
in the same process - you utilize two processes - one that monitors
the keyboard and sends data to the line,  the other monitors the line and
sends data to the screen.

Or,  you could just get PCOMM from comp.sources.unix - or kermit from
same.

One of the beauties of UNIX is not having to wrestle with low level
stuff like task dispatching.

-- 

Dan Mercer
Reply-To: mercer at npdiss1.StPaul.NCR.COM (Dan Mercer)
"MAN - the only one word oxymoron in the English Language"



More information about the Comp.lang.c mailing list