Multiscreens - which one is active?

Arch Harris arch at hub.cs.jmu.edu
Fri Oct 27 02:56:23 AEST 1989


> In article <41 at van-bc.UUCP>, sl at van-bc.UUCP (Stuart Lynne) responds
> to article <55 at gutarman.UUCP> robert at gutarman.UUCP () and
> article <11 at dynasys.UUCP> jessea at dynasys.UUCP (Jesse W. Asher - Sysadmin.) writes:
> 
> You can also try things like:
> 	echo "Hello - please call me" > /dev/mono
> this will generally go to the active screen. Of course you will have to
> figure out which of /dev/{[cepv]ga,mono} is actually available on your
> system.
 
This only works if one of the multiscreens is the controlling terminal 
(a fact that is NOT documented in SCO 2.2.2).  If you're executing
the `echo' command line above using `at' or `cron', there will 
be no controlling terminal and the attempt to open /dev/mono will fail.
You need to write a program which calls `setpgrp', then opens a
multiscreen which is not already been opened by any other process.  
Then your program can open and write to /dev/mono (or /dev/?ega).

    Arch Harris                 INTERNET: arch at hub.cs.JMU.EDU
    Dept of Computer Science    UUCP:     uunet!virginia!jmucshub!arch
    James Madison U.            BITNET:   fac_harris at JMUVAX1
    Harrisonburg, VA 22807      Phone:    (703) 568-6847
-- 

	Arch Harris			BITNET: FAC_HARRIS at JMUVAX1
	Dept of Computer Science	PHONE: (703) 568 6847
	James Madison University
	Harrisonburg, VA 22807



More information about the Comp.unix.xenix mailing list