The Mumps/II moving cursor

This is a discussion on The Mumps/II moving cursor within the mumps forums in Programming Languages category; Hi For Mumps/II Kevin O'Kane mumps, does anyone know (including Keving O'Kane) if its possible to move the cursor to any position in the screen and also if there is a clear screen command. I'm wanting to attempt to do a menu screen with some user options by just running mumps.exe directly from Windows XP. Its certainly possible in MSM Mumps using S X$=10,$Y=10 and w # to clear the screen for example. Thanks David...

Go Back   Application Development Forum > Programming Languages > mumps

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-12-2008, 04:05 PM
David Hubball
Guest
 
Default The Mumps/II moving cursor

Hi

For Mumps/II Kevin O'Kane mumps, does anyone know (including Keving
O'Kane) if its possible to move the cursor to any position in the
screen and also if there is a clear screen command. I'm wanting to
attempt to do a menu screen with some user options by just running
mumps.exe directly from Windows XP. Its certainly possible in MSM
Mumps using S X$=10,$Y=10 and w # to clear the screen for example.

Thanks
David
Reply With Quote
  #2  
Old 07-13-2008, 01:12 PM
Rod Dorman
Guest
 
Default Re: The Mumps/II moving cursor

In article <21220fa4-7e65-40fb-ae34-12058bec44cf@j22g2000hsf.googlegroups.com>,
David Hubball <davidhubball@talktalk.net> wrote:
>For Mumps/II Kevin O'Kane mumps, does anyone know (including Keving
>O'Kane) if its possible to move the cursor to any position in the
>screen and also if there is a clear screen command. I'm wanting to
>attempt to do a menu screen with some user options by just running
>mumps.exe directly from Windows XP. Its certainly possible in MSM
>Mumps using S X$=10,$Y=10 and w # to clear the screen for example.


Sorry, I'm not familiar with Kevin O'Kane mumps but two approaches you
can try are

1) if it supports mnemonicspaces and controlmnemonics you can use the
X3.64 controlmnemonics

2) if you're running in a VT/ANSI terminal environment you can use
escape sequences

--
-- Rod --
rodd(at)polylogics(dot)com
Reply With Quote
  #3  
Old 07-14-2008, 07:38 AM
David Hubball
Guest
 
Default Re: The Mumps/II moving cursor

Hi Rod

Your suggestion might the only way but could you give me an example
command to move the cursor to say line 10 on the Y access

Thanks
David
Reply With Quote
  #4  
Old 07-14-2008, 02:08 PM
Rod Dorman
Guest
 
Default Re: The Mumps/II moving cursor

In article <5775f221-fd22-4b18-8691-236975427e59@27g2000hsf.googlegroups.com>,
David Hubball <davidhubball@talktalk.net> wrote:
>Your suggestion might the only way


Which of the two suggestions? Its customary to quote the portion
you're replying to and place your dialog under it.

>but could you give me an example command to move the cursor to say
>line 10 on the Y access


I'm assuming M[UMPS] $Y=10 which would be the 11th line from the top
and for this example I'll pick $X=5. Note that X3.64 defines top left
corner as (1,1)


SET XPos=5,YPos=11

>>1) if it supports mnemonicspaces and controlmnemonics you can use
>> the X3.64 controlmnemonics


WRITE /CUP(XPos+1,YPos+1)

2) if you're running in a VT/ANSI terminal environment you can use
escape sequences

WRITE *27,*91,YPos+1,*59,XPos+1,*72

--
-- Rod --
rodd(at)polylogics(dot)com
Reply With Quote
  #5  
Old 07-14-2008, 09:05 PM
Kevin O'Kane
Guest
 
Default Re: The Mumps/II moving cursor

On Sat, 12 Jul 2008 13:05:37 -0700, David Hubball wrote:

Hi

For Mumps/II Kevin O'Kane mumps, does anyone know (including Keving
O'Kane) if its possible to move the cursor to any position in the screen
and also if there is a clear screen command. I'm wanting to attempt to
do a menu screen with some user options by just running mumps.exe
directly from Windows XP. Its certainly possible in MSM Mumps using S
X$=10,$Y=10 and w # to clear the screen for example.

Thanks
David

:::::::::::::::::::::::::::::::::::::

From the interpreter, the only way would be escape sequences which
are terminal emulator dependent.

From the compiler, calls to system routines are possible using inline
C/C++ code. The old Unix/Linux 'curses' package would work. It is
also possible to invoke MS Windows API's but this is not easy.

Another approach is the Glade package. I was able to use it
with compiled Mumps routines to get some very nice windows
applications. See:

http://www.cs.uni.edu/~okane/source/.../compiler.html

and search for Glade. It hasn't been checkout in quite a
while some some of the interfaces may be wrong but the basic
idea is there.

Glade is free on Windows and Linux.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:48 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.