writing a hex value to ttya
Dave Carhart
drc at konkord.uucp
Thu May 9 05:10:56 AEST 1991
I'm reading and writing to both ttya and ttyb with no problems (usually).
The only time I have a problem is when I have to send a hex 10 (^P). I'm using the write command and the c++ compiler barfs because it's not a char *. I've tried casting it to a pointer and inserting the 0x10 into a char buffer and sending it that way. Neither works. The cast doesn't send anything and the char buffer sends an ascii 0.
Any ideas on this?
Dave.
---------------------------------------------------------------------------
--
Dave Carhart Phone 508-460-4646 FAX 508-481-9772
Concord Communications, Inc. Telex 910-240-1986
753 Forest St. uucp --> uunet!konkord!drc
Marlboro, MA 01572 USA internet --> drc%konkord at uunet.uu.net
More information about the Comp.unix.programmer
mailing list