[comp.archives] [xpert] Re: Raise/Lower Xterm under Application Control

mouse@LARRY.MCRCIM.MCGILL.EDU (09/27/90)

Archive-name: mterm/26-Sep-90
Original-posting-by: mouse@LARRY.MCRCIM.MCGILL.EDU
Original-subject: Re:  Raise/Lower Xterm under Application Control
Archive-site: larry.mcrcim.mcgill.edu [132.206.4.3]
Archive-directory: /X
Reposted-by: emv@math.lsa.umich.edu (Edward Vielmetti)

> 1.  X-term, DECTerm, or the like window with the following
>     specification
>     a)  responds to ANSI cursor positioning sequences
>     b)  can be invoked from an application program under program
>         control
>     c)  can be raised and lowered (exposed, unexposed) under the
>         parent control
>     d)  size and location controlled by parent process.

My mterm can do all of the above.  It has an option
	-blanket <window-ID>
which is designed specifically for running under control of another
program.  When this option is used, the emulator window is created as a
child of the specified window rather than as a child of the root.  Of
course, to raise/lower/expose/etc it, simply do perform the operation
on the parent window; since the emulator window is a child of it, it
will necessarily follow.  Resizes of the parent window are explicitly
tracked, so to resize the emulator simply resize the parent window.
The emulator window never has any border in this mode, so the parent
window's border, if any, will visually appear to be the emulator's
border.  If the emulator window is destroyed, perhaps due to the
destruction of the parent window, mterm will, of course, die.
(Command-line options and resources which would normally affect the
border and geometry of the window are ignored when -blanket is used.)

mterm can be had by ftp to 132.206.1.1, from the directory X/mterm.src,
or if you can't ftp then send me mail and I can mail you a copy.

(To make it understand ANSI escape sequences, you need to use 
-termtype ansi, or -termtype decansi if you want VT100-compatible
extensions like double height/width.)

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu