termios

Linux termios VTIME not working?

We've been bashing our heads off of this one all morning. We've got some serial lines setup between an embedded linux device and an Ubuntu box. Our reads are getting screwed up because our code usually returns two (sometimes more, sometimes exactly one) message reads instead of one message read per actual message sent. Here is the code ...

Linux Terminal Problem with Non-Canonical Terminal I/O app

I have a small app written in C designed to run on Linux. Part of the app accepts user-input from the keyboard, and it uses non-canonical terminal mode so that it can respond to each keystroke. The section of code that accepts input is a simple function which is called repeatedly in a loop: char get_input() { char c = 0; int res =...

asynchronous serial transmission C

So i'm working on a program, wich is vaguely going to resemble Br@y's Terminal, but running from the commandline in linux It will do asynchronous transmission, out the serial (Com) port. Now i think the Header/library i need for this is the termios.h Now i've only used posix a little before and i;m finding it rather heavy going digging...

Linux: Pipe into Python (ncurses) script, stdin and termios

Hi all, Apparently this is almost a duplicate of "Bad pipe filedescriptor when reading from stdin in python - Stack Overflow"; however, I believe this case is slightly more complicated (and it is not Windows specific, as the conclusion of that thread was). I'm currently trying to experiment with a simple script in Python: I'd like to...