TIP: Click on subject to list as thread! ANSI
echo: cis.os9.6809.coco
to: Ian Hodgson 72177,1762 (X)
from: Kevin Darling 76703,4227
date: 1991-07-09 02:21:58
subject: #11315-Window switching

#: 11320 S10/OS9/6809 (CoCo)
    09-Jul-91  02:21:58
Sb: #11315-Window switching
Fm: Kevin Darling 76703,4227
To: Ian Hodgson 72177,1762 (X)

Ian, yep you sure can.  Hope this does what you need:

  * script to create and select type 2 sterm window
  *
  (display 1b20 2 0 0 50 18 1 0 2 1b21 >/1&) >/w

Here's how that works.  The "(....)>/w"  starts a subshell with its standard
output pointing to a new window descriptor (and remember, scripts all begin
with the script file itself as the standard input!).  Stderr is still the
current window, tho.

The subshell then runs "display ...", which dwsets to stdout (the new window)
and then selects to stdout (the new window) using the extra "/1", which is also the new window.  All this must take place within
the same subshell () because we're doing this all to one main path.

Work it through... it's kind of fun to figure it out .  - kev

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.