Article View: comp.sys.sun
Article #11119Source or info on read/write to SUN rs-232?
From: Perrone Ford
Date: Thu, 23 Feb 1989 09:01
Date: Thu, 23 Feb 1989 09:01
15 lines
1223 bytes
1223 bytes
Does any one out there have any examples of how to read/write to the rs-232 port on the sun. My Instructor wants to read and write standard ANSI chars. to the port. Do I tell him to > /dev/tta or what?..is there an elegant method in "C" or preferably ADA ? Thanx for your help... Perrone Ford. [[ It's called "/dev/ttya". You can open it like you would a file, but you may have to do some terminal munging to it (set the baud rate, parity, etc.). Read "termio(4)" and the pages it points to. You might also want to read "ttcompat(4M)" since that describes a BSD compatible package. Of course if you're running 3.x, then the manual pages you need to look at are all different. --wnl ]]
Technical Details
Message-ID:
<7304@pyr.gatech.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!mit-eddie!uw-beaver!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!mit-eddie!uw-beaver!rice!sun-spots-request From: loligo!perrone@gatech.edu (Perrone Ford) Newsgroups: comp.sys.sun Subject: Source or info on read/write to SUN rs-232? Message-ID: <7304@pyr.gatech.EDU> Date: 23 Feb 89 09:01:51 GMT Sender: usenet@rice.edu Organization: Florida State University Computing Center Lines: 15 Approved: Sun-Spots@rice.edu Original-Date: 16 Feb 89 23:29:54 GMT X-Sun-Spots-Digest: Volume 7, Issue 167, message 15 of 15