#define G_SNAPSHOT 0x0040 /* Always snapshot files. */
#define G_SRESTART 0x0080 /* Screen restarted. */
#define G_TMP_INUSE 0x0100 /* Temporary buffer in use. */
#define G_RESIZE 0x0200 /* Resize requested. */
u_int32_t flags;
/* Screen interface functions. */
if (LF_ISSET(EC_INTERRUPT))
return (0);
goto append;
case E_WRESIZE:
/* Set the global resize flag. */
F_SET(sp->gp, G_RESIZE);
default:
append: if (v_event_append(sp, argp))
return (1);
if (O_ISSET(sp, O_TTYWERASE))
LF_SET(TXT_TTYWERASE);
F_CLR(sp->gp, G_RESIZE);
/* Do the input thing. */
if (v_txt(sp, vp, NULL, NULL, 0, prompt, 0, 1, flags))
/* Set the cursor to the resulting position. */
sp->lno = vp->m_final.lno;
sp->cno = vp->m_final.cno;
/* Abort the command on interrupt or window resize. */
if (INTERRUPTED(sp) || F_ISSET(sp->gp, G_RESIZE))
}