Home | History | Annotate | Download | only in libcurses

Lines Matching refs:SCREEN

107  *  given screen.
110 _cursesi_gettmode(SCREEN *screen)
112 screen->useraw = 0;
114 if (tcgetattr(fileno(screen->infd), &screen->orig_termios)) {
116 if (tcgetattr(fileno(screen->outfd), &screen->orig_termios)) {
118 screen->notty = TRUE;
125 screen->baset = screen->orig_termios;
126 screen->baset.c_oflag &= ~OXTABS;
128 screen->GT = 0; /* historical. was used before we wired OXTABS off */
129 screen->NONL = (screen->baset.c_oflag & ONLCR) == 0;
138 screen->cbreakt = screen->baset;
139 screen->cbreakt.c_lflag &= ~(ECHO | ECHONL | ICANON);
140 screen->cbreakt.c_cc[VMIN] = 1;
141 screen->cbreakt.c_cc[VTIME] = 0;
143 screen->rawt = screen->cbreakt;
144 screen->rawt.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | INLCR | IGNCR |
146 screen->rawt.c_oflag &= ~OPOST;
147 screen->rawt.c_lflag &= ~(ISIG | IEXTEN);
158 screen->rawt.c_iflag &= ~ISTRIP;
159 screen->rawt.c_cflag &= ~(CSIZE | PARENB);
160 screen->rawt.c_cflag |= CS8;
163 screen->curt = &screen->baset;
164 return tcsetattr(fileno(screen->infd), TCSASOFT | TCSADRAIN,
165 screen->curt) ? ERR : OK;
525 __startwin(SCREEN *screen)
528 (void)fflush(screen->infd);
533 * With a larger screen, especially across a network, we'd like
546 if (screen->stdbuf == NULL) {
547 screen->len = LINES * COLS * 2;
548 if (screen->len > 8192)
549 screen->len = 8192;
550 if ((screen->stdbuf = malloc(screen->len)) == NULL)
551 screen->len = 0;
553 (void)setvbuf(screen->outfd, screen->stdbuf, _IOFBF, screen->len);
556 ti_puts(screen->term, t_enter_ca_mode(screen->term), 0,
557 __cputchar_args, (void *) screen->outfd);
558 ti_puts(screen->term, t_cursor_normal(screen->term), 0,
559 __cputchar_args, (void *) screen->outfd);
560 if (screen->curscr->flags & __KEYPAD)
561 ti_puts(screen->term, t_keypad_xmit(screen->term), 0,
562 __cputchar_args, (void *) screen->outfd);
563 screen->endwin = 0;