Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!sco!staceyc From: staceyc@sco.COM (Stacey Campbell) Newsgroups: comp.unix.programmer Subject: Re: Two paths for one file descriptor Message-ID: <10315@scolex.sco.COM> Date: 20 Feb 91 17:34:36 GMT References: <3814@wb3ffv.ampr.org> Sender: news@sco.COM Organization: The Santa Cruz Operation, Inc. Lines: 32 In article <3814@wb3ffv.ampr.org> wmark@wb3ffv.ampr.org (Mark Winsor) writes: >I need the ability within a curses based program to be able to send the >standard output to two different terminals upon receipt of a SIGUSR1. If you mean one process sending output to two different terminals, and you are using System V 3.2 curses then check out the routines; SCREEN *newterm(type, outfd, infd) which sets up curses for output to a new terminal, and SCREEN *set_term(new) which makes curses switch to the new terminal. >The purpose of this is to enable remote viewing via modem of what a user is >doing WITHOUT requiring them to get out of the application. Anybody have >any suggestions? I realize that most solutions will require that the >local and remote terminals are the same type (which is not a problem). Any >ideas would be appreciated. The above solution supports terminals of different types. p.s. it helps if people mention what operating system they are using, a lot of BSD systems still do not provide System V curses functions (however many proprietary BSD based systems now ship the latest System V curses libraries). -- Stacey Campbell Internet: staceyc@sco.com UUCP: {uunet,ucscc,att,sq,altos,lotus,sun,microsoft}!sco!staceyc Brought to you by Super Global Mega Corp .com