/titanic_50/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | cbreak.c | 53 cur_term->_flags &= ~__TERM_HALF_DELAY; in cbreak() 55 cur_term->_prog.c_cc[VMIN] = 1; in cbreak() 56 cur_term->_prog.c_cc[VTIME] = 0; in cbreak() 57 cur_term->_prog.c_lflag &= ~ICANON; in cbreak() 59 return __m_return_code("cbreak", __m_tty_set(&cur_term->_prog)); in cbreak() 69 cur_term->_flags &= ~__TERM_HALF_DELAY; in nocbreak() 74 cur_term->_prog.c_cc[VEOF] = cur_term->_shell.c_cc[VEOF]; in nocbreak() 75 cur_term->_prog.c_cc[VEOL] = cur_term->_shell.c_cc[VEOL]; in nocbreak() 76 cur_term->_prog.c_lflag |= ICANON; in nocbreak() 78 return __m_return_code("nocbreak", __m_tty_set(&cur_term->_prog)); in nocbreak() [all …]
|
H A D | color.c | 66 cur_term->_color = calloc(max_colors, sizeof *cur_term->_color); in start_color() 67 if (cur_term->_color == (short (*)[3]) 0) in start_color() 72 cur_term->_pair = calloc(max_pairs, sizeof *cur_term->_pair); in start_color() 73 if (cur_term->_pair == (short (*)[2]) 0) in start_color() 79 if (cur_term->_color != (short (*)[3]) 0) in start_color() 80 free(cur_term->_color); in start_color() 101 cur_term->_color[color][0] = r; in init_color() 102 cur_term->_color[color][1] = g; in init_color() 103 cur_term->_color[color][2] = b; in init_color() 136 cur_term->_pair[pair][0] = f; in init_pair() [all …]
|
H A D | setup.c | 57 TERMINAL *cur_term; variable 94 for(j = 0; cur_term->_str[i][j]; ++j) in do_prototype() 95 if (cur_term->_str[i][j] == proto) in do_prototype() 96 cur_term->_str[i][j] = CC; in do_prototype() 274 old_term = cur_term; 276 cur_term = (TERMINAL *) calloc(1, sizeof *cur_term); 277 if (cur_term == (TERMINAL *) 0) { 282 if (isatty(cur_term->_ifd = ifd)) 283 cur_term->_flags |= __TERM_ISATTY_IN; 284 if (isatty(cur_term->_ifd = ofd)) [all …]
|
H A D | nonl.c | 58 cur_term->_prog.c_iflag |= ICRNL; in nl() 59 cur_term->_prog.c_oflag |= OPOST; in nl() 61 cur_term->_prog.c_oflag |= ONLCR; in nl() 64 if ((code = __m_tty_set(&cur_term->_prog)) == OK) in nl() 65 cur_term->_flags |= __TERM_NL_IS_CRLF; in nl() 82 cur_term->_prog.c_iflag &= ~ICRNL; in nonl() 84 cur_term->_prog.c_oflag &= ~ONLCR; in nonl() 86 cur_term->_prog.c_oflag &= ~OPOST; in nonl() 89 if ((code = __m_tty_set(&cur_term->_prog)) == OK) in nonl() 90 cur_term->_flags &= ~__TERM_NL_IS_CRLF; in nonl()
|
H A D | wgetch.c | 134 if (!(cur_term->_flags & __TERM_HALF_DELAY) 135 && (cur_term->_prog.c_cc[VMIN] != w->_vmin 136 || cur_term->_prog.c_cc[VTIME] != w->_vtime)) { 137 cur_term->_prog.c_cc[VMIN] = w->_vmin; 138 cur_term->_prog.c_cc[VTIME] = w->_vtime; 140 if (__m_tty_set(&cur_term->_prog) == ERR) 171 if (cur_term->_shell.c_cc[VERASE] != _POSIX_VDISABLE) 173 if (ch == cur_term->_shell.c_cc[VERASE]) 201 cur_term->_prog.c_cc[VMIN] = 0; 202 cur_term->_prog.c_cc[VTIME] = [all …]
|
/titanic_50/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | color.c | 65 cur_term->_color = calloc(max_colors, in start_color() 66 sizeof (*cur_term->_color)); in start_color() 67 if (cur_term->_color == (short (*)[3]) 0) in start_color() 72 cur_term->_pair = calloc(max_pairs, sizeof (*cur_term->_pair)); in start_color() 73 if (cur_term->_pair == (short (*)[2]) 0) in start_color() 88 if (cur_term->_color != (short (*)[3]) 0) in start_color() 89 free(cur_term->_color); in start_color() 106 cur_term->_color[color][0] = r; in init_color() 107 cur_term->_color[color][1] = g; in init_color() 108 cur_term->_color[color][2] = b; in init_color() [all …]
|
H A D | setup.c | 60 TERMINAL *cur_term; variable 111 for (j = 0; cur_term->_str[i][j]; ++j) in do_prototype() 112 if (cur_term->_str[i][j] == proto) in do_prototype() 113 cur_term->_str[i][j] = *CC; in do_prototype() 307 old_term = cur_term; in __m_setupterm() 309 cur_term = (TERMINAL *) calloc(1, sizeof (*cur_term)); in __m_setupterm() 310 if (cur_term == NULL) { in __m_setupterm() 315 if (isatty(cur_term->_ifd = ifd)) in __m_setupterm() 316 cur_term->_flags |= __TERM_ISATTY_IN; in __m_setupterm() 317 if (isatty(cur_term->_ofd = ofd)) in __m_setupterm() [all …]
|
/titanic_50/usr/src/lib/libcurses/screen/ |
H A D | setupterm.c | 73 TERMINAL _first_term, *cur_term = &_first_term; variable 377 if ((cur_term = (TERMINAL *) in setupterm() 393 free((char *)cur_term); in setupterm() 409 cur_term = &_first_term; in setupterm() 429 (void) strncpy(cur_term->_termname, term, 14); in setupterm() 431 cur_term->_termname[14] = '\0'; in setupterm() 432 cur_term->_bools = cur_bools; in setupterm() 433 cur_term->_nums = cur_nums; in setupterm() 434 cur_term->_strs = cur_strs; in setupterm() 435 cur_term->_strtab = strtab; in setupterm() [all …]
|
H A D | reset_sh.c | 56 cur_term -> old.st_flgs |= TM_SET; in reset_shell_mode() 57 (void) ioctl(cur_term->Filedes, DIOCSETT, &cur_term -> old); in reset_shell_mode() 70 (void) ioctl(cur_term -> Filedes, TCSETAW, &SHELLTTY); in reset_shell_mode() 72 (void) ioctl(cur_term -> Filedes, TCSETSW, &SHELLTTYS); in reset_shell_mode() 74 if (cur_term -> newlmode != cur_term -> oldlmode) in reset_shell_mode() 75 (void) ioctl(cur_term -> Filedes, TIOCLSET, in reset_shell_mode() 76 &cur_term -> oldlmode); in reset_shell_mode() 81 (void) ioctl(cur_term -> Filedes, TIOCSETN, &SHELLTTY); in reset_shell_mode() 83 if (cur_term -> newlmode != cur_term -> oldlmode) in reset_shell_mode() 84 (void) ioctl(cur_term -> Filedes, TIOCLSET, in reset_shell_mode() [all …]
|
H A D | tgetch.c | 66 chtype *inputQ = cur_term->_input_queue; in tgetch() 67 char *chars_onQ = &(cur_term->_chars_on_queue); in tgetch() 77 cur_term->fl_typeahdok = TRUE; in tgetch() 81 if (cur_term->_ungotten > 0) { in tgetch() 82 cur_term->_ungotten--; in tgetch() 113 if (interpret && cur_term->funckeystarter[inp]) in tgetch() 134 if (cur_term->_delay == 0) { in _readchar() 137 (void) ioctl(cur_term->_inputfd, FIONREAD, &arg); in _readchar() 145 if (cur_term->_delay > 0) { in _readchar() 149 infd = 1 << cur_term->_inputfd; in _readchar() [all …]
|
H A D | delkey.c | 54 _KEY_MAP *kp, **kpp = cur_term->_keys, **fpp, **dpp; in delkey() 55 int mask = 0, cmp, numkeys = cur_term->_ksz; in delkey() 57 short *lkorder = &(cur_term->_lastkey_ordered), in delkey() 58 *first_macro = &(cur_term->_first_macro), in delkey() 59 *lmorder = &(cur_term->_lastmacro_ordered); in delkey() 105 if ((cur_term->_ksz -= num_deleted_keys) == 0) in delkey() 106 (void) delkeymap(cur_term); in delkey() 108 cur_term->_keys = (_KEY_MAP **) realloc((char *) in delkey() 109 cur_term->_keys, (unsigned)cur_term->_ksz); in delkey()
|
H A D | ttimeout.c | 62 if (cur_term->_inputfd < 0) in ttimeout() 68 if (cur_term->_delay == delay) in ttimeout() 73 if (cur_term->_delay < 0) in ttimeout() 77 if ((delay + cur_term->_delay) == -1) in ttimeout() 88 cur_term->_delay = delay; in ttimeout() 98 int flags = fcntl(cur_term->_inputfd, F_GETFL, 0); in _setblock() 105 (void) fcntl(cur_term->_inputfd, F_SETFL, flags); in _setblock() 119 cur_term->_fl_rawmode = 3; in _settimeout() 123 cur_term->_fl_rawmode = 1; in _settimeout()
|
H A D | chkinput.c | 118 if (!cur_term->fl_typeahdok || in _chkinput() 119 (cur_term->_chars_on_queue == INP_QSIZE) || in _chkinput() 120 (cur_term->_check_fd < 0)) { in _chkinput() 126 if ((int)cur_term->_chars_on_queue > 0) { in _chkinput() 137 if (read(cur_term->_check_fd, (char *)&c, 1) > 0) { in _chkinput() 152 cur_term->_input_queue[cur_term->_chars_on_queue++] = c; in _chkinput() 178 int i, j = cur_term->_chars_on_queue; in _print_queue() 179 chtype *inputQ = cur_term->_input_queue; in _print_queue()
|
H A D | typeahead.c | 66 int savefd = cur_term->_check_fd; in typeahead() 107 if ((cur_term->_check_fd = open("/dev/tty", O_RDONLY | in typeahead() 109 (void) fcntl(cur_term->_check_fd, F_SETFD, 1); in typeahead() 111 cur_term->_check_fd = -1; in typeahead() 114 int savefd = cur_term->_check_fd; in typeahead() 117 cur_term->_check_fd = fd; in typeahead() 119 cur_term->_check_fd = -1; in typeahead()
|
H A D | flushinp.c | 54 cur_term->Filedes, SP); in flushinp() 58 (void) ioctl(cur_term -> Filedes, TCFLSH, 0); in flushinp() 61 (void) ioctl(cur_term -> Filedes, TIOCGETP, &(PROGTTY)); in flushinp() 67 (void) ioctl(cur_term -> Filedes, TIOCSETP, &(PROGTTY)); in flushinp() 74 cur_term->_chars_on_queue = cur_term->_ungotten; in flushinp()
|
H A D | cbreak.c | 61 if (cur_term->_fl_rawmode != 1) { in cbreak() 92 cur_term->Filedes, PROGTTYS.c_lflag); in cbreak() 96 cur_term->Filedes, PROGTTY.sg_flags); in cbreak() 99 cur_term->_fl_rawmode = 1; in cbreak() 100 cur_term->_delay = -1; in cbreak() 103 cur_term->timeout = 0; in cbreak()
|
H A D | start_col.c | 74 ioctl(cur_term->Filedes, CONIOGETDATA, &con); in start_color() 81 if ((cur_term->_pairs_tbl = in start_color() 100 if ((color_tbl = (cur_term->_color_tbl = in start_color() 119 cur_term->_color_tbl = NULL; in start_color() 120 err1: free(cur_term->_pairs_tbl); in start_color() 121 cur_term->_pairs_tbl = NULL; in start_color() 166 cur_term->_cur_pair.background = 0; in start_color() 167 cur_term->_cur_pair.foreground = -1; in start_color()
|
H A D | setkeymap.c | 197 int numbytes, key_size = cur_term->_ksz; in setkeymap() 199 if (cur_term->internal_keys != NULL) in setkeymap() 203 funckey = cur_term->funckeystarter; in setkeymap() 265 (char *) cur_term->_keys, (key_size * in setkeymap() 267 free(cur_term->_keys); in setkeymap() 269 (void) memcpy((char *) (cur_term->internal_keys = p), in setkeymap() 271 cur_term->_keys = key_ptrs; in setkeymap() 272 cur_term->_ksz += numkeys; in setkeymap() 277 cur_term->_lastkey_ordered = -1; in setkeymap() 278 cur_term->_lastmacro_ordered += numkeys; in setkeymap() [all …]
|
H A D | vidupdate.c | 62 bool color_terminal = (cur_term->_pairs_tbl) ? TRUE : FALSE; in vidupdate() 109 &cur_term->_cur_pair; in vidupdate() 180 int k = (cur_term->sgr_mode == oldmode) ? 1 : 2; in _change_video() 187 cur_term->sgr_faked)) != A_NORMAL) { in _change_video() 261 (turn_off != (turn_off & cur_term->check_turn_off))) { in _change_video() 269 (cur_term->turn_off_seq[i]), in _change_video() 285 (void) tputs(tparm_p0(cur_term->turn_on_seq[i]), in _change_video() 304 cur_term->sgr_mode = newmode; in _change_video() 314 _Color_pair *ptp = cur_term->_pairs_tbl; in _change_color() 316 _Color_pair *cur_pair = &cur_term->_cur_pair; in _change_color() [all …]
|
H A D | endwin.c | 80 if (cur_term->_cursorstate != 1) in endwin() 81 _PUTS(cur_term->cursor_seq in endwin() 82 [cur_term->_cursorstate], 0); in endwin() 120 if (cur_term->_cursorstate != 1) in endwin() 162 char chars_onQ = cur_term->_chars_on_queue; in force_doupdate() 170 cur_term->_chars_on_queue = INP_QSIZE; in force_doupdate() 172 cur_term->_chars_on_queue = chars_onQ; in force_doupdate()
|
H A D | newkey.c | 62 **prev_keys = cur_term->_keys; in newkey() 63 short *numkeys = &cur_term->_ksz; in newkey() 91 short *first = &(cur_term->_first_macro); in newkey() 99 cur_term->_lastmacro_ordered++; in newkey() 103 cur_term->_keys = keys; in newkey() 109 cur_term->funckeystarter[*str] |= (macro ? _MACRO : _KEY); in newkey()
|
H A D | nocbreak.c | 64 cur_term->Filedes, PROGTTYS.c_lflag); in nocbreak() 68 cur_term->Filedes, PROGTTY.sg_flags); in nocbreak() 72 cur_term->_fl_rawmode = FALSE; in nocbreak() 73 cur_term->_delay = -1; in nocbreak() 76 cur_term->timeout = 0; in nocbreak()
|
H A D | noraw.c | 64 cur_term->Filedes, PROGTTYS.c_lflag); in noraw() 68 cur_term->Filedes, PROGTTY.sg_flags); in noraw() 72 cur_term->_fl_rawmode = FALSE; in noraw() 73 cur_term->_delay = -1; in noraw() 76 cur_term->timeout = 0; in noraw()
|
H A D | raw.c | 69 cur_term->Filedes, PROGTTYS.c_iflag, PROGTTYS.c_cflag); in raw() 73 cur_term->Filedes, PROGTTY.sg_flags); in raw() 79 cur_term->_fl_rawmode = 2; in raw() 80 cur_term->_delay = -1; in raw() 83 cur_term->timeout = 0; in raw()
|
H A D | ungetch.c | 52 int i = cur_term->_chars_on_queue, j = i - 1; in ungetch() 53 chtype *inputQ = cur_term->_input_queue; in ungetch() 73 cur_term->_ungotten++; in ungetch() 75 cur_term->_chars_on_queue++; in ungetch()
|