home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
MM1
/
UTIL
/
stg_mm1.lzh
/
pop.doc
< prev
next >
Wrap
Text File
|
1991-08-18
|
6KB
|
141 lines
POP - OSK/MM1/KD Windows Version - Beta Release 91/08/18 - V5.5
(c) 1991 by StG Computers inc.
This program is SHAREWARE.
If you find it useful, a donation of $10 towards will help to
encourage future enhancements. A donation of $20 or more will
get you a copy of the latest version in the mail when we add
new features! Address at end of file...
Output from -? option:
Pop {-opt} {program} - create new window
-l = don't label the window
-s = don't switch to window
-c = replace current window
-w = wait on program to die
-f=# = set foreground color
-b=# = set background color
-o=# = set border color
-0 = 80x26 640x208 16 Color [default]
-1 = 80x26 640x416 16 Color Interlaced
-2 = 80x52 640x416 16 Color Interlaced
-3 = 40x26 320x208 256 Color
-4 = 40x26 320x416 256 Color Interlaced
-5 = 40x52 320x416 256 Color Interlaced
-6 = 90x30 720x240 16 Color Overscan
-7 = 90x60 720x480 16 Color Interlaced/Overscan
POP V5.5 (c) 1991 by StG Computers inc.
Written by Chris Swinefurth (The Bug) and StG
This program is SHAREWARE! If you like it, please send $10 to:
StG Computers inc., P.O. Box 24285, Speedway IN 46224
Pop is a handy little program that allows you to create a new window
from the command line at any time. You can specify a program for it to
start running on that window, or it will default to the Shell. Although
pop will normally create a new window, you may change your current
window by using the -c option. Pop will also put the window name on the
top line unless you specify the -l option. The program that is started
will run by itself unless you add the -w option that causes it to wait
on the program to finish. The foreground, background, and border colors
can also be specified on the command line. The default foreground and
background colors depend on the window type, and the default border
colors is taken from the window number to 'color code' each open window.
And of course, any type of window (as currently defined) can be started,
making it easy to start a program that requires a particular type of window.
NOTE: On the MM1 the color scheme is white on blue for all window
types, and the 'overscan' types do not display a border.
Pop also will automatically add a termcap entry with correct settings for
the window size. It also sets the environment variable TERM for you to
use the correct entry. However, if you 'pop' the current window (-c),
it can't affect an existing shell so it tells you what to enter to set
the TERM correctly. So far I have only run into one program (ME) that
doesn't work with this correctly, but it is due to a bug in that program.
Use umacs instead. Also, pop sets the tmode 'pag' setting to reflect the
proper number of lines for your window, in case you have pause on.
The -s option on pop will keep it from selecting the new window. This
allows you to put 'pop -s' in the startup (or .login) file to create
a new window, but leave you on /term. Also, the SHELL environment
variable is used to determine the default program to start. This way
if you want to use another shell, or put an option in like -e (print
error messages), pop will take care of that each time you start a new
window.
Apologies for the quick'n'dirty doc file folks, this is a quick hack.
There is also a CoCo version of this same utility, which has the
capability of pop'ing a VDG window. No more xmode'ing a window to
start your favorite game. Just pop -v it.
NOTES: If you are using the sysgo module that I modified and uploaded
to CIS (it comes with the MM1), you can put the command 'pop -c'
in a file called '/dd/.login' and it will automatically be
executed (just before your first shell). To prevent pop from
complaining about the TERM variable not being set correctly,
set it just before the 'pop -c' entry in /dd/.login. For
example, your .login might read:
setenv TERM Win80x25
pop -c
The PORT environment variable is now set to the new window if
it was not already set to something.
Users wishing to modify the 'Win' termcap entry may do so, but
do not change the first title line or any of the lines/columns
entries. The lines following the Win title line may be changed
carefully to allow for different features or customization. I
may re-write the termcap entries, but in that case a different
name will be used and a whole new set created leaving the old
one to copy from.
Known Bugs:
- The border color is not supported by early versions of KD windows
(this causes all borders to be black - DWset call is being fixed)
- Modules that are not 68k exectable code (such as Basic modules) must
be run by prefixing the command with 'shell'
- Termcap entry created uses ANSI rather than COCO sequences, this is
due to cursor up (code 9) not working yet. When fixed, an all-COCO
entry would run faster. Current ANSI termcap entry also contains
unimplimented (although standard) codes such as inverse (ESC[7m) and
underline. If these get implemented (hey Kev!) they will work...
* Version History:
* V0.? - Original version in C by StG (probably late '87)
* V1.0 - First assembly version by StG (source ate by disk) for StGNet
* V2.0 - Disassembled by Bug and hacked for more options
* (not released due to bugs in VDG support)
* V3.0 - Rewrote by Bug and added -c option
* (modeled after my type utility in the RBW)
* V4.0 - Rewrite by Bug in C with VDG support fixed (help from StG)
* V5.0 - trashed and recoded by StG for OSK support, new var naming style
* V5.1 - included patches for awkward SELECT in KDwin and tmode pag setting
* V5.2 - added auto termcap features from edit
* V5.3 - fixed window flip problem (caused by DWSET bug) and added -s opt
* V5.4 - use SHELL variable for default program and options
* V5.5 - created setenv() to fix environ mod'ing problems, added set to PORT
*
* Future enhancements:
*
* -v = vertical split screen (put []'s on ends of label)
* -h = horizontal split screen
* -d = auto SRCDBG mode (pop 2 windows)
* $ = separation character for multiple commands (for split, etc)
* -f = select a font file(?)
* -i = interactive mode (mousey)
StG Computers inc.
P.O. Box 24285
Speedway IN 46224
(317) 241-6401