Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ames!oliveb!sun!gorodish!guy From: guy@gorodish.UUCP Newsgroups: comp.unix.questions,comp.unix.wizards,comp.lang.c Subject: Re: Filtering Everything Message-ID: <16648@sun.uucp> Date: Tue, 14-Apr-87 03:22:20 EST Article-I.D.: sun.16648 Posted: Tue Apr 14 03:22:20 1987 Date-Received: Wed, 15-Apr-87 05:54:40 EST References: <919@watmum.UUCP> <6447@bu-cs.BU.EDU> <3446@rsch.WISC.EDU> <3448@rsch.WISC.EDU> Sender: news@sun.uucp Distribution: comp Lines: 15 Xref: utgpu comp.unix.questions:1711 comp.unix.wizards:1771 comp.lang.c:1610 > Can't you use them just like ptty's? No, you can't. That's the whole point. Think of an "sxt" as an 8-position switch connecting one physical terminal to up to 8 virtual ones. Data coming from the physical terminal is routed to the input queue of one of the 8 virtual terminals. Data written to any of the virtual virtual terminals is routed to the output queue of the physical terminal, unless the virtual terminal in question isn't the current one and LOBLK is set on that virtual termnal in which case the "write" blocks until the virtual terminal becomes the current one. There's no place here to plug in a user process so that it sees the data flying by; the whole point of a pseudo-tty is to plug a user process into the data stream.