[comp.unix.programmer] writing a hex value to ttya

drc@konkord.uucp (Dave Carhart) (05/09/91)

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