Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.internals Subject: Re: Device Emulation with a pty? Message-ID: <1978:Oct803:29:0790@kramden.acf.nyu.edu> Date: 8 Oct 90 03:29:07 GMT References: <6372@emory.mathcs.emory.edu> Organization: IR Lines: 17 In article <6372@emory.mathcs.emory.edu> km@mathcs.emory.edu (Ken Mandelberg) writes: > I would like to use a pty to let a process emulate a device. However, > it looks to me like the pty interface doesn't really provide enough > control and status on the master side. A pty only acts like a device over the lifetime of one session. It isn't meant to survive past hangup. (Though you can set the tty speed to 0 to simulate a hangup on some systems.) What are you really trying to do? > * detect device specific slave side ioctls and reply to them from > the master side. Look up TIOCPKT and TIOCREMOTE. ---Dan