• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/picocom/

Lines Matching defs:term

3  * term.c
11 * Documentation can be found in the header file "term.h".
42 #include "term.h"
52 } term;
140 if ( ! term.init ) {
147 if ( term.fd[i] == -1 ) break;
169 if ( ! term.init ) {
176 if (term.fd[i] == fd) break;
198 if ( ! term.init )
202 if (term.fd[i] == -1)
205 r = tcflush(term.fd[i], TCIOFLUSH);
207 r = tcsetattr(term.fd[i], TCSAFLUSH, &term.origtermios[i]);
213 tname = ttyname(term.fd[i]);
218 term.fd[i] = -1;
233 if ( term.init ) {
236 if (term.fd[i] == -1)
239 r = tcflush(term.fd[i], TCIOFLUSH);
241 r = tcsetattr(term.fd[i], TCSAFLUSH, &term.origtermios[i]);
247 tname = ttyname(term.fd[i]);
252 term.fd[i] = -1;
255 /* initialize term structure. */
257 term.fd[i] = -1;
263 /* ok. term struct is now initialized. */
264 term.init = 1;
300 r = tcgetattr(fd, &term.origtermios[i]);
307 term.currtermios[i] = term.origtermios[i];
308 term.nexttermios[i] = term.origtermios[i];
309 term.fd[i] = fd;
332 r = tcflush(term.fd[i], TCIOFLUSH);
338 r = tcsetattr(term.fd[i], TCSAFLUSH, &term.origtermios[i]);
346 term.fd[i] = -1;
368 term.fd[i] = -1;
391 r = tcsetattr(newfd, TCSAFLUSH, &term.currtermios[i]);
398 term.fd[i] = newfd;
422 r = tcflush(term.fd[i], TCIOFLUSH);
428 r = tcsetattr(term.fd[i], TCSAFLUSH, &term.origtermios[i]);
435 term.currtermios[i] = term.origtermios[i];
436 term.nexttermios[i] = term.origtermios[i];
459 term.nexttermios[i] = term.currtermios[i];
483 r = tcgetattr(fd, &term.currtermios[i]);
512 r = tcsetattr(term.fd[i], TCSAFLUSH, &term.nexttermios[i]);
519 term.currtermios[i] = term.nexttermios[i];
544 cfmakeraw(&term.nexttermios[i]);
546 term.nexttermios[i].c_cc[VMIN] = 1;
547 term.nexttermios[i].c_cc[VTIME] = 0;
573 tio = term.nexttermios[i];
654 term.nexttermios[i] = tio;
679 tiop = &term.nexttermios[i];
721 tiop = &term.nexttermios[i];
766 tiop = &term.nexttermios[i];
811 tiop = &term.nexttermios[i];
841 tiop = &term.nexttermios[i];
879 tio = term.nexttermios[ni];
911 term.fd[ni] = -1;
914 term.nexttermios[ni] = tio;
985 term.currtermios[i] = tio;
1027 r = tcsetattr(fd, TCSANOW, &term.currtermios[i]);
1080 term.currtermios[i] = tio;