Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MWAPI or other

10 views
Skip to first unread message

Matty Mumps

unread,
Oct 19, 2003, 5:46:32 AM10/19/03
to
To User group

Can anyone point me in the write direction to learn about screen
layout to do with MWAPI - I understand this is the best character
based way of setting screen layout.

Or could someone post a few commands to get me started.

Thanks
Matthew

aa.Denver Braughler.aa@aa.bwcc.com

unread,
Oct 19, 2003, 10:56:35 AM10/19/03
to
Matthew wrote:
> Can anyone point me in the write direction to learn about screen
> layout to do with MWAPI -
You need to see whether the implementation of MUMPS that you have offers it.

> I understand this is the best character
> based way of setting screen layout.

I didn't say that or even anything like that.

> ...what MWAPI is please[?]
The M windowing API.

It is *not* a character-based API.
It requires a windowing client OS platform.

But if you mean line-drawing on a terminal, just write dashes (-)
for horizontal lines and pipes (|) for vertical lines.
Vigules (\,/) can be used for diagonal lines.

> Most of the Mumps application written by my company is
> all character-based.
So what tools are they using?

> Or could someone post a few commands to get me started.

I think you ought to have an old-timer at your company show you
the way they already do things.
You need to know.

Besides, I doubt that you are going to get to introduce anything
new before you understand the existing coding practices.

Migrating from character-based applications to windowing won't happen overnight.

Mattymumps

unread,
Oct 19, 2003, 2:09:07 PM10/19/03
to
Listen Pal!
I don't need your sarcastic comments. I was asking for help from you guys.

John Murray

unread,
Oct 19, 2003, 3:08:00 PM10/19/03
to
"Mattymumps" <matty...@aol.com> wrote in message
news:20031019140907...@mb-m23.aol.com...

> Listen Pal!
> I don't need your sarcastic comments. I was asking for help from you guys.

I suppose it's possible that my newsfeed has skipped one or more messages,
but the only response I've seen to your original one was from Denver. It
didn't come over to me as sarcastic, but rather helpful.

Regarding MWAPI, I know of only one implementation of it, which was in
MSM-Workstation. When in 1998 the MSM product line was sold to InterSystems,
MSM-WS ceased development. It is still available, with peer support from
folk who either still use it or else recall enough about it to help out. You
could start at www.georgejames.com/ws/

But most of the UI "focus" nowadays centres on browsers. Depending on whose
MUMPS you're working with there may be off-the-shelf or built-in facilities,
or you might have to grow your own.

Tell us a little more and I'm sure you'll find helpful people on this NG,
including Denver.

John Murray
George James Software
www.georgejames.com

Ed de Moel

unread,
Oct 19, 2003, 3:20:31 PM10/19/03
to John Murray

>>Listen Pal!
>>I don't need your sarcastic comments. I was asking for help from you guys.
>

MSM-Workstation is a good place to start learning about
an implementation of MWAPI.

For the MWAPI itself, you might want to look at
http://207.192.157.194/mdc/example/ssvn/window.htm

Ed de Moel

Domestos

unread,
Oct 19, 2003, 6:17:52 PM10/19/03
to
Upgrade your application to Cache and I can download some excellect utilitys
for you to use that will allow you to create boxes, scrolling boxes/windows,
colors allsorts all in a CHUI environment...

Thanks
Domestos

"Matty Mumps" <matty...@aol.com> wrote in message
news:ab071e14.03101...@posting.google.com...

M.R. Hoare

unread,
Oct 20, 2003, 5:02:52 AM10/20/03
to
I understand you are working on a system with existing applications. I
may have missed something somewhere but which version of M are you
using? On which platform? Are you trying to write new applications or
extend existing ones (perhaps by adding a new user interface?) You
mention 'learning it from a book'. Which book?

The reason for asking questions like these is that it is hard to give
general advice. Things depend on circumstances, on the task in hand,
resources available. For example: MSM-Workstation interfaces directly
to an MSM server but not (as far as I know) directly to anything else,
This doesnt make it useless for other situations but does make it more
attractive if you are running MSM anyway. People have built GUI
front-ends for all kinds of M implementations using tools like Tcl,
PHP, Delphi., VB If you look at the archives you will see a number of
discussions on the best tools for building GUI interfaces. If you are
using Cache you can find a lot on the intersystems newsgroup.

Incidentally, if you are using Datatree Mumps, there was an MWAPI
implementation (DT-Windows) but I dont think Intersystems
supports/sells it any longer and it isnt much fun to work with.

There is a book about MWAPI (I found it once on amazon).

M.R. Hoare

George Timson

unread,
Oct 20, 2003, 12:01:08 PM10/20/03
to
The Open Source VA Kernel is a suite of MUMPS routines that works on
all MUMPS systems. FileMan is a DBMS that is part of Kernel, and it
includes a full-screen editor called ScreenMan, ScreenMan uses a
table of TERMINAL TYPES to control I/O for full-screen CHUI, including
line-drawing. You can get answers to some of your questions, I think,
by examining one of these tables, for an ANSI-Standarad terminal:

NAME: C-VT320 SELECTABLE AT SIGN-ON: YES
RIGHT MARGIN: 80 FORM FEED:
#,$C(27,91,50,74,27,91,72)
PAGE LENGTH: 48 BACK SPACE: $C(8)
*OLD XY CRT: W $C(27,91)_((DY+1))_$C(59)_((DX+1))_$C(72)
HOME CURSOR: $C(27,91,72) REVERSE VIDEO ON:
$C(27,91,55,109)
REVERSE VIDEO OFF: $C(27,91,50,55,109)
ERASE TO END OF LINE: $C(27,91,75) ERASE TO END OF PAGE:
$C(27,91,74)
BLINK ON: $C(27,91,53,109) BLINK OFF: $C(27,91,50,53,109)
RESET: $C(27)_"[!p" UNDERLINE ON: $C(27,91,52,109)
UNDERLINE OFF: $C(27,91,50,52,109) SGR ATTRIBUTES OFF:
$C(27,91,109)
HIGH INTENSITY (BOLD): $C(27,91,49,109)
LOW INTENSITY (UNBOLD): $C(27,91,50,50,109)
NORMAL INTENSITY (RESET): $C(27,91,50,50,109)
INSERT MODE: $C(27,91,52,104) REPLACE MODE: $C(27,91,52,108)
CURSOR UP: $C(27)_"[A" CURSOR DOWN: $C(27)_"[B"
CURSOR RIGHT: $C(27)_"[C" CURSOR LEFT: $C(27)_"[D"
ARROW KEY STRING LENGTH: 3 DELETE LINE: $C(27)_"[M"
INSERT LINE: $C(27)_"[L" DELETE CHAR.: $C(27)_"[P"
INSERT CHAR.: $C(27)_"[@" CURSOR ON: $C(27)_"[?25h"
CURSOR OFF: $C(27)_"[?25l"
OPEN PRINTER PORT: W $C(27)_"[?5i" CLOSE PRINTER PORT: W
$C(27)_"[?4i"
ERASE FROM BEG OF PAGE: $C(27,91,49,74)
ERASE ENTIRE PAGE: $C(27,91,50,74) ERASE FROM BEG OF LINE:
$C(27,91,49,75)
ERASE ENTIRE LINE: $C(27,91,50,75) ERASE CHARACTER: $C(27,91,88)
ERASE FIELD: $C(27)_"["_(+X)_"X" INDEX: $C(27)_"D"
REVERSE INDEX: $C(27)_"M" SAVE CURSOR: $C(27,55)
RESTORE CURSOR: $C(27,56) NEXT LINE: $C(27)_"E"
AUTO WRAP ON: $C(27,91,63,55,104) AUTO WRAP OFF:
$C(27,91,63,55,108)
AUTO REPEAT ON: $C(27,91,63,56,104) AUTO REPEAT OFF:
$C(27,91,63,56,108)
KEYPAD APPLICATION MODE: $C(27,61) KEYPAD NUMERIC MODE: $C(27,62)
TAB SET: $C(27,72) TAB CLEAR: $C(27,91,103)
CLEAR ALL TABS: $C(27,91,51,103)
SET TOP & BOTTOM MARGINS: $C(27,91)_(+IOTM)_$C(59)_(+IOBM)_$C(114)
DOUBLE HIGH DOUBLE WIDE TOP: $C(27,35,51)
DOUBLE HIGH DOUBLE WIDE BOTTOM: $C(27,35,52)
SINGLE HIGH DOUBLE WIDE: $C(27,35,54)
SINGLE HIGH SINGLE WIDE: $C(27,35,53)
KP0: $C(27)_"Op" KP1: $C(27)_"Oq"
KP2: $C(27)_"Or" KP3: $C(27)_"Os"
KP4: $C(27)_"Ot" KP5: $C(27)_"Ou"
KP6: $C(27)_"Ov" KP7: $C(27)_"Ow"
KP8: $C(27)_"Ox" KP9: $C(27)_"Oy"
PF1: $C(27)_"OP" PF2: $C(27)_"OQ"
PF3: $C(27)_"OR" PF4: $C(27)_"OS"
MINUS: $C(27)_"Om" COMMA: $C(27)_"Ol"
ENTER: $C(27)_"OM" PERIOD: $C(27)_"On"
FIND: $C(27)_"[1~" SELECT: $C(27)_"[4~"
INSERT HERE: $C(27)_"[2~" REMOVE: $C(27)_"[3~"
PREV SCREEN: $C(27)_"[5~" NEXT SCREEN: $C(27)_"[6~"
HELP: $C(27)_"[28~" DO: $C(27)_"[29~"
TOP LEFT CORNER: "l" BOTTOM LEFT CORNER: "m"
TOP RIGHT CORNER: "k" BOTTOM RIGHT CORNER: "j"
MIDDLE T: "n" TOP T: "w"
BOTTOM T: "v" LEFT T: "t"
RIGHT T: "u" VERTICAL LINE: "x"
HORIZONTAL LINE: "q" GRAPHICS OFF: $C(27)_"(B"
GRAPHICS ON: $C(27)_"(0" PRINT SCREEN: $C(27,91,105)
XY CRT: W $C(27,91)_((DY+1))_$C(59)_((DX+1))_$C(72)

www.hardhats.org has info on this MUMPS software suite.

--George Timson

Matty Mumps

unread,
Oct 23, 2003, 3:23:42 AM10/23/03
to
gti...@pacbell.net (George Timson) wrote in message news:<13960825.0310...@posting.google.com>...

To George and everyone else
Thanks for your advice so far. I should have said - I'm working with
MSM-Workstation 2.0.0, and my company also uses MSM. My investigations
are within the realms of MSM I have to say - for the time being.

Can anyone say if I am limited to say using the 'cup' or is it 'tcup'
command to move the cursor about the screen to design screen layouts
please.

Thanks again for all your input so far.
Matthew

Maury Pepper

unread,
Oct 23, 2003, 10:54:31 AM10/23/03
to
"Matty Mumps" <matty...@aol.com> wrote in message
news:ab071e14.03102...@posting.google.com...
> ...

>
> To George and everyone else
> Thanks for your advice so far. I should have said - I'm working with
> MSM-Workstation 2.0.0, and my company also uses MSM. My investigations
> are within the realms of MSM I have to say - for the time being.
>
> Can anyone say if I am limited to say using the 'cup' or is it 'tcup'
> command to move the cursor about the screen to design screen layouts
> please.
>
> Thanks again for all your input so far.
> Matthew

MSM-WS has a built-in GUI (MWAPI) which lets you do real windows. But, if
you want to stick to character-based screens, then you should check out the
chapter in the MSM Reference Manual "Mnemonic Namespaces". It details the
two mnemonic namespaces that are built in to MSM, ANSI X3.64-1979 and
ZWINTERM. The latter allows you to do windows with character-based screens;
and line drawing is included too.

0 new messages