| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| 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. |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.