home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
SESSMUM.ZIP
/
README
< prev
next >
Wrap
Text File
|
1990-05-20
|
4KB
|
96 lines
A full-screen session controller
sessmum and sesskid make a convenient full-screen session switching mechanism.
sessmum sets up a small shared-memory segment, and creates sessions of
"sesskid". Each sesskid brings up a "cmd" kid, and intercepts keyboard
input with DosMon....
The print-screen key is used to mean "switch to the last session I was in"
The Alt-print-screen is used to round-robin the sessions currently up
The (Left) Shift- (Left) Control keys together are used to bring up QQ's
pop-up window.
From here there are are basically 3 sub-functions:
Switch directly to a numbered session by typing that number
(The session will be created if it doesn't yet exist)
(session 0 is "sessmum" itself - it doesn't do much right now - I was
going to put more stuff in it - maybe one day I will - at the moment
it merely prints a few process ID's and asks you if you want to quit!)
Use the primitive calculator by typing "?"
(yes, it's integers only but sometimes it's kind of convenient)
F3 picks up characters under the cursor in the calculator window
and places them in the keyboard-buffer - see next paragraph.
Use or edit a Quick-Key:
These are F1-F9 or a-z
Use page up-down to page through them
curse up to the key you want to use and just type -
(say you types "Hello World" in F3 now hit escape -
next time you can hit "Ctrl-Shift-F3" and "Hello World" will
get stuffed in your keystroke buffer)
The last page is unlabelled and consists of what you last typed
(ignoring control chars, and delimited by carriage-return)
If you find yourself typing "DB SS:SP" more than once you can do this:
Hit Ctrl-Shift-Space - this pops up into the un-named red page
Curse up to where you see "DB SS:SP"
Hit Alt-E - this brings the line into the bottom field
(You might at this stage want to hit Page-Up a time or two..)
Hit Alt-N
Hit any alpha or function (F1-F9) - say you hit "S"
You will now have the line in the "S" field - now hit escape
Now you can repeat "DB SS,SP" merely by hitting Ctrl-Shift-S
There are more little things you will notice, but one more thing:
"^m" (for example) plugs a carriage return, so you might want to
exit the "S" field to be "DB SS:SP^m"
Note: The named quick-keys are shared between sessions, the un-named
last-typed fields are session-local
These keys can be primed at boot from a file with the "-q" or "-Q"
option (If you specify "-Q" then the file gets written back
to disc whenever you change a named Quick-key)
Last point:
if you preset an option field "SESSION=*" (actually any character
may be used instead of '*') then QQ plugs the sesssion number in
here, allowing you to test "IF %SESSION%=1 ...." in your
os2init.cmd file.
(I use it to print a different coloured border)
Options:
-q or -Q file the file of preset Quick-keys, containing eg:
set F1 hello world
set S DB SS,SP^m
-p file the full name of sesskid
-s "sess<*>" the Task manager's name (with session # plugged)
-2 up to -9 causes 2 (or more) sessions to be started
-k "parms-to-sesskid" passes the string to sesskid
parms for sesskid:
-c cmd_name cmd_startup_string
(e.g. -c cmd.exe /k os2init)
I have (more-or-less) the following line in my startup.cmd:
start /n /fs d:\sessmum.exe -q d:\qkdata -p d:\sesskid.exe -s"sess<*>"
-k "-c c:\os2\cmd.exe /k os2init" -2
(sorry I had to show it in 2 lines)...
One more point - if you switch to (say) Dos with Ctrl-Escape, and then switch
back to a different sesskid, sessmum doesn't know this and gets a little
confused for a while - If you just switch back to "sessmum" you should
end up in the expected sesskid session
One last point - don't try to run sessmum from two sessions - he'll either bomb
or just get confused!
good luck .......