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