Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!konkord!konkord.uucp!drc From: drc@konkord.uucp (Dave Carhart) Newsgroups: comp.unix.programmer Subject: writing a hex value to ttya Message-ID: <1991May8.191056.11346@uunet!konkord> Date: 8 May 91 19:10:56 GMT Sender: drc@uunet!konkord (Dave Carhart) Organization: Concord Communications Lines: 13 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@uunet.uu.net