Lines Matching +full:no +full:- +full:wp
1 /*-
78 * cl_term_init --
93 CHAR_T *wp; in cl_term_init() local
97 for (tkp = c_tklist; tkp->name != NULL; ++tkp) { in cl_term_init()
98 if ((t = tigetstr(tkp->ts)) == NULL || t == (char *)-1) in cl_term_init()
100 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); in cl_term_init()
101 MEMCPY(name, wp, wlen); in cl_term_init()
102 CHAR2INT(sp, t, strlen(t), wp, wlen); in cl_term_init()
103 MEMCPY(ts, wp, wlen); in cl_term_init()
104 CHAR2INT(sp, tkp->output, strlen(tkp->output), wp, wlen); in cl_term_init()
105 MEMCPY(output, wp, wlen); in cl_term_init()
106 if (seq_set(sp, name, strlen(tkp->name), ts, strlen(t), in cl_term_init()
107 output, strlen(tkp->output), SEQ_COMMAND, in cl_term_init()
113 for (tkp = m1_tklist; tkp->name != NULL; ++tkp) { in cl_term_init()
114 if ((t = tigetstr(tkp->ts)) == NULL || t == (char *)-1) in cl_term_init()
117 if (kp->value == tkp->value) in cl_term_init()
121 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); in cl_term_init()
122 MEMCPY(name, wp, wlen); in cl_term_init()
123 CHAR2INT(sp, t, strlen(t), wp, wlen); in cl_term_init()
124 MEMCPY(ts, wp, wlen); in cl_term_init()
125 output[0] = (UCHAR_T)kp->ch; in cl_term_init()
126 if (seq_set(sp, name, strlen(tkp->name), ts, strlen(t), in cl_term_init()
132 for (tkp = m2_tklist; tkp->name != NULL; ++tkp) { in cl_term_init()
133 if ((t = tigetstr(tkp->ts)) == NULL || t == (char *)-1) in cl_term_init()
144 if (tkp->output == NULL) { in cl_term_init()
145 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); in cl_term_init()
146 MEMCPY(name, wp, wlen); in cl_term_init()
147 CHAR2INT(sp, t, strlen(t), wp, wlen); in cl_term_init()
148 MEMCPY(ts, wp, wlen); in cl_term_init()
149 if (seq_set(sp, name, strlen(tkp->name), in cl_term_init()
154 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); in cl_term_init()
155 MEMCPY(name, wp, wlen); in cl_term_init()
156 CHAR2INT(sp, t, strlen(t), wp, wlen); in cl_term_init()
157 MEMCPY(ts, wp, wlen); in cl_term_init()
158 CHAR2INT(sp, tkp->output, strlen(tkp->output), wp, wlen); in cl_term_init()
159 MEMCPY(output, wp, wlen); in cl_term_init()
160 if (seq_set(sp, name, strlen(tkp->name), in cl_term_init()
161 ts, strlen(t), output, strlen(tkp->output), in cl_term_init()
171 SLIST_FOREACH(qp, sp->gp->seqq, q) in cl_term_init()
173 (void)cl_pfmap(sp, qp->stype, in cl_term_init()
174 qp->input, qp->ilen, qp->output, qp->olen); in cl_term_init()
179 * cl_term_end --
190 SLIST_FOREACH_SAFE(qp, gp->seqq, q, nqp) in cl_term_end()
192 if (qp == SLIST_FIRST(gp->seqq)) in cl_term_end()
193 SLIST_REMOVE_HEAD(gp->seqq, q); in cl_term_end()
203 * cl_fmap --
221 * cl_pfmap --
232 CHAR_T *wp; in cl_pfmap() local
238 p == (char *)-1 || strlen(p) == 0) in cl_pfmap()
241 msgq_wstr(sp, M_ERR, from, "233|This terminal has no %s key"); in cl_pfmap()
248 CHAR2INT(sp, p, strlen(p), wp, wlen); in cl_pfmap()
249 MEMCPY(ts, wp, wlen); in cl_pfmap()
255 * cl_optchange --
277 F_SET(sp->gp, G_SRESTART); in cl_optchange()
290 if (sp->frp != NULL && sp->frp->name != NULL) in cl_optchange()
291 (void)cl_rename(sp, sp->frp->name, 1); in cl_optchange()
303 * cl_omesg --
327 if (clp->tgw == TGW_UNKNOWN) in cl_omesg()
328 clp->tgw = sb.st_mode & S_IWGRP ? TGW_SET : TGW_UNSET; in cl_omesg()
349 * cl_ssize --
371 * not a big deal -- as soon as the user sets them explicitly the in cl_ssize()
378 if (ioctl(STDERR_FILENO, TIOCGWINSZ, &win) != -1) { in cl_ssize()
401 * ignore the signal if there's no change. in cl_ssize()
421 * has been set up. If there's no TERM environmental variable set, in cl_ssize()
452 * dot-files. in cl_ssize()
467 * atoz_or --
468 * Parse non-zero positive decimal with a fallback.
483 * cl_putchar --