Lines Matching defs:wstate
51 static short wstate; /* state of the wcinkey function */
66 wstate = INKEY_NORM;
92 if (wstate == INKEY_NORM) {
106 "inkey (wstate normal) got '%s'\n", unctrl(k));
111 wstate = INKEY_ASSEMBLING; /* go to assembling state */
115 } else if (wstate == INKEY_BACKOUT) {
120 wstate = INKEY_ASSEMBLING;
126 } else if (wstate == INKEY_ASSEMBLING) {
148 "inkey (wstate assembling) got '%s'\n", unctrl(k));
156 wstate = INKEY_TIMEOUT;
170 } else if (wstate == INKEY_WCASSEMBLING) {
192 "inkey (wstate wcassembling) got '%s'\n",
203 _cursesi_state = wstate = INKEY_NORM;
209 _cursesi_state = wstate = INKEY_BACKOUT;
259 _cursesi_state = wstate = INKEY_NORM;
267 _cursesi_state = wstate = INKEY_BACKOUT;
276 fprintf(stderr, "Inkey wstate screwed - exiting!!!");
285 if (((wstate == INKEY_TIMEOUT) || (mapping < 0))
315 if (ret == -2 && wstate != INKEY_TIMEOUT) {
318 wstate = INKEY_WCASSEMBLING;
343 _cursesi_state = wstate = INKEY_NORM;
351 _cursesi_state = wstate = INKEY_BACKOUT;
372 _cursesi_state = wstate = INKEY_NORM;
379 _cursesi_state = wstate = INKEY_BACKOUT;