[comp.sys.amiga.programmer] Single char read problems

dvlrab@cs.umu.se (Roger Abrahamsson) (03/20/91)

Help!!!

I have just been thinking to start to program more
seriously on my amiga and are using modula 2, (M-2).
Now there is a small problem, I am trying to read one
char at a time from the keyboard (now) and that doesn`t
seem possible when doing it in a CON: window, not easily
anyway. I`ve got some old programs written in turbo-pascal
on a pc and was hoping to be able to convert them easily,
but the problem is that I`m not good at the use of IDCMP-messages,
gadgets, requesters and such. It shouldn`t be any problem if it
wasn`t for that %&/& CON: window, and opening a RAW: doesn`t
quite work that I like.
If anyone got any suggestions about how to do read a single
char from an input stream, and it ought to work with files,
serial or parallell ports or keyboard, please give me a hint.
Thanks in advance, Roger.