Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!hal!ncoast!allbery From: allbery@ncoast.UUCP Newsgroups: comp.os.minix Subject: Re: stty (was: ns32016 port + misc.) Message-ID: <2691@ncoast.UUCP> Date: Sat, 20-Jun-87 17:45:25 EDT Article-I.D.: ncoast.2691 Posted: Sat Jun 20 17:45:25 1987 Date-Received: Sun, 21-Jun-87 11:58:25 EDT References: <549@ubu.warwick.UUCP> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: comp.os.minix Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 25 As quoted from <549@ubu.warwick.UUCP> by ham@warwick.UUCP (Hot Air Machine Project): +--------------- | ....And the bugfix. stty.c performs its ioctl()s on file descriptor 0 (stdin) | this means that to change the settings on terminals other than the one you | are using, you have to type e.g: stty -echo < /dev/tty1 | which is rather counter-intuitive, not to mention different to UNIX. The | solution is to replace all occurences of "ioctl(0," by "ioctl(1," in stty.c -- | I think there are four of them. +--------------- V7 stty did do it this way, doing ioctls to fd 0 and printing output to fd 1. Later versions moved ioctls to fd 1 and printed output on fd 2. (I'm using a truly ancient Unisoft 68000 V7 on an abandoned Pixel right now; if I knew how to program in TMS9900 machine language I might try to bring up Minix on this beast. (All I/O including console I/O goes through the TMS9900.) ++Brandon -- Copyright (C) 1987 Brandon S. Allbery. Redistribution permitted only if the redistributor permits further redistribution. (Stargate take heed!) ---- Moderator for comp.sources.misc and comp.binaries.ibm.pc ---- Brandon S. Allbery {decvax,cbosgd}!cwruecmp!ncoast!allbery aXcess Company {ames,mit-eddie,talcott}!necntc!ncoast!allbery 6615 Center St. #A1-105 necntc!ncoast!allbery@harvard.HARVARD.EDU Mentor, OH 44060-4101 +01 216 974 9210 (also eddie.MIT.EDU)