Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!newsfeed.internetmci.com!howland.reston.ans.net!xlink.net!zib-berlin.de!irz401!uriah.heep!bonnie.heep!not-for-mail From: j@bonnie.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: contool - Anybody managed to get it working? Date: 11 Sep 1995 12:19:55 +0200 Organization: Private U**x site, Dresden. Lines: 22 Message-ID: <4312gb$t5p@bonnie.tcd-dresden.de> References: <DEM44q.2zq@seeware.dialix.oz.au> Reply-To: joerg_wunsch@uriah.heep.sax.de NNTP-Posting-Host: 192.109.108.139 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Mark Hannon <mark@seeware.DIALix.oz.au> wrote: >My problem is that it refuses to open /dev/console. > >The relevant code is:- > > if (ioctl(fileno(slave), TIOCCONS, NULL) == -1) > abend("%s: could not attach to /dev/console", program); > >Should this code work? I can't find any documentation on the TIOCCONS ioctl. It's defined in <sys/ttycom.h> #define TIOCCONS _IOW('t', 98, int) /* become virtual console */ So it's supposed to work. The source code for the xconsole program does also look like it would use this way. -- cheers, J"org private: joerg_wunsch@uriah.heep.sax.de http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)