TerminalRead
int TerminalRead(unsigned char *, int);
c = TerminalRead(ttyiring.supply, ring_empty_consecutive(&ttyiring));