Lines Matching refs:rfd
226 * Output label on wfd and return next char on rfd with no echo.
231 ttyquery(int rfd, int wfd, const char* label)
243 tcgetattr(rfd, &old);
248 tcsetattr(rfd, TCSADRAIN, &tty);
249 if ((r = read(rfd, &c, 1)) == 1) {
261 tcsetattr(rfd, TCSADRAIN, &old);
272 * Edit buf on rfd,wfd with label.
277 ttyedit(int rfd, int wfd, const char* label, char* buf, size_t size)
290 tcgetattr(rfd, &old);
295 tcsetattr(rfd, TCSADRAIN, &tty);
297 if ((r = read(rfd, &c, 1)) <= 0)
344 tcsetattr(rfd, TCSADRAIN, &old);