ZXDunny
Deep avatar
- Joined
- Oct 12, 2010
- Messages
- 2,585
Hi -
As some of you may be aware, I'm developing a BASIC interpreter for the Pandora, PandBAS. What I want to do is add the ability to change nub modes in BASIC, and I understand that this involves writing a string to a device in the linux system. I've seen examples of how to do this in C/C++, but how does one go about it in FPC (Pascal)? Specifically, to read/write the nubs' modes, and query their position values.
Any ideas? Linux devices are not something I'm familiar with. I know you can do it with the echo command in a terminal, but I'd like to do it in code.
Cheers,
D.
As some of you may be aware, I'm developing a BASIC interpreter for the Pandora, PandBAS. What I want to do is add the ability to change nub modes in BASIC, and I understand that this involves writing a string to a device in the linux system. I've seen examples of how to do this in C/C++, but how does one go about it in FPC (Pascal)? Specifically, to read/write the nubs' modes, and query their position values.
Any ideas? Linux devices are not something I'm familiar with. I know you can do it with the echo command in a terminal, but I'd like to do it in code.
Cheers,
D.