VOGONS

Common searches


Serial port on linux

Topic actions

Reply 20 of 23, by nicola

User metadata
Rank Newbie
Rank
Newbie

This code:

	termInfo.c_cc[VMIN] = 0;
termInfo.c_cc[VTIME] = 0;

is for non canonical mode. So I add also:

termInfo.c_lflag &= ~(ICANON);

Now step5 still doesn't work, but it receives wrong chars.
So someting changed. 😁
I should continue investigate in the code.
Who is linux patch's author ? Maybe he could know something about it.
Thanks, Nicola.

Reply 22 of 23, by nicola

User metadata
Rank Newbie
Rank
Newbie

Work ! 😁 😁 😁
I changed:

termInfo.c_lflag &= ~(ICANON);

to:

termInfo.c_lflag &= 0;

Now I will try to work on step5.
Thanks, Nicola.

P.S. Why there isn't the code complete on posix patch?
Hal, do you make work step5 v3.0 on linux or only on windows ?

Reply 23 of 23, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Nice 😀

> P.S. Why there isn't the code complete on posix patch?
The patch submitter uses it for the second mouse in 'the settlers' which it seems to be sufficient for. For a mouse only receiving data is required.

> Hal, do you make work step5 v3.0 on linux or only on windows ?
Only Windows. And it's more a hobby than work. I'm trying to make a simpe replacement...

1+1=10