Forum unknown
· Programming
#Modula-2 problems
7 messages in this thread
I'm using DOSFiles.OpenInputOutputFile to open a RAW: window and then
reading from that. This procedure only gives me a filehandle, not a pointer
to a window. I dont need all the complex features like the mouse that an
and cursor keys. intuition window would give me.i need text and the
function keys
Another problem I'm having is with the DOSCodeLoader.Execute procedure.I
can get it to execute command's, but if the command needs further
input(i.e. Date ?) it wont try and get it from my window.It just locks up??
What im trying to do is to make mt own cli,both to learn to write mod-2 and
so i can edit my commands as i enter them. I'm seem to learning a lot
fumbling around in the dark like this, but it does get frustating!!!
Tough problems!
Re: first problem of finding Intuition window pointer to a RAW window.
Well, you got me. But in the recent developer's newsletter (Aug/Sept) there is
an example in C of how to find out the window pointer to the console window
you're talking to.
Re: second problem. I haven't played with Execute under M2, but you
should be able to specify the input and putput file handles for the executed
process. If it doesn't work it might be a bug in M2. I'll try to play with it
in a few days.
– Steve –
RE:pointers:Well i guess i'll have to find a copy of that, but I'm not
a member of the devolpers network yet.How do I go about that?Guess I'll have
to wait on this one.
RE:Execute: You can specify both input and output filehandles, but when
I do specify an output(which is the same as my input) it prints a CLI prompt
(i.e. 5> ) and then locks up. I suspect this is do to the fact that my file
(RAW:) has the keyboard, and is gettingthe keyboard commands, but not writing
them to execute. Something like circular reasoning(and you know what kind of
trouble that is!!!!).Oh well ,maybe TDI has an idea why this occurs (HELLO
Les!!!).
I do have some new questions, on the use of Control Sequence's.I can
preform most of the Control Sequence's listed in ANSIConsole, by just writing
CSI and then the control sequence.
Write(ANSIConsole.CSI);
Write(ANSIConsole.CUF);
This will make the cursor go forward one pos. But how do you use CPR
(cursor pos. report). I need to read my cursor pos. store it, and then come
back to it.Have
you by any chance used this?
Sorry to ask so many questions, but no one in my area seems to know
MOD-2, just C.Thanks for the help.
Boy, you really come up with good questions!! I've never worked with the CPR
before, but I guess that all you have to do is send the CPR sequence to the
console, and then do a read on it, as it will reply with a sequence describing
the cursor location. (that's how a VT100 works, and I expect that to be the
same here.)
Sorry I couldn't provide more help. But keep the questions coming; One
day I'll get something right.
– Steve –
Boy, you really come up with good questions!! I've never worked with the CPR
before, but I guess that all you have to do is send the CPR sequence to the
console, and then do a read on it, as it will reply with a sequence describing
the cursor location. (that's how a VT100 works, and I expect that to be the
same here.)
Sorry I couldn't provide more help. But keep the questions coming; One
day I'll get something right.
– Steve –
RE:pointers:Well i guess i'll have to find a copy of that, but I'm not
a member of the devolpers network yet.How do I go about that?Guess I'll have
to wait on this one.
RE:Execute: You can specify both input and output filehandles, but when
I do specify an output(which is the same as my input) it prints a CLI prompt
(i.e. 5> ) and then locks up. I suspect this is do to the fact that my file
(RAW:) has the keyboard, and is gettingthe keyboard commands, but not writing
them to execute. Something like circular reasoning(and you know what kind of
trouble that is!!!!).Oh well ,maybe TDI has an idea why this occurs (HELLO
Les!!!).
I do have some new questions, on the use of Control Sequence's.I can
preform most of the Control Sequence's listed in ANSIConsole, by just writing
CSI and then the control sequence.
Write(ANSIConsole.CSI);
Write(ANSIConsole.CUF);
This will make the cursor go forward one pos. But how do you use CPR
(cursor pos. report). I need to read my cursor pos. store it, and then come
back to it.Have
you by any chance used this?
Sorry to ask so many questions, but no one in my area seems to know
MOD-2, just C.Thanks for the help.
Tough problems!
Re: first problem of finding Intuition window pointer to a RAW window.
Well, you got me. But in the recent developer's newsletter (Aug/Sept) there is
an example in C of how to find out the window pointer to the console window
you're talking to.
Re: second problem. I haven't played with Execute under M2, but you
should be able to specify the input and putput file handles for the executed
process. If it doesn't work it might be a bug in M2. I'll try to play with it
in a few days.
– Steve –