[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BUG in MiNT: I got it



I think I found the bug. The terminal mode was changed by the following
lines (using struct termios):

c_iflag &= ~(IXON | IXOFF);
c_iflag &= ~(INLCR|ICRNL|IGNCR|ISTRIP);
c_lflag &= ~(ICANON|ECHO);
c_oflag &= ~(OPOST);

I was able to remove my CTRL-O bug by changing the third line to:
c_lflag &= ~(ICANON|ECHO|ISIG);
Even CTRL-S and CTRL-Q are delivered now via read()!

Or would it have been a better idea to insert a line like the following one
instead of the change I did?
c_cc[VDISCARD] = JVDISABLE;	/* flush output */

Terminal settings is a difficult area...
Anyway - it works now.

Hans