help to avoid chaotic screen output on the "second" screen.
{
int r;
- endwin ();
+ mutt_endwin (NULL);
if ((r = mutt_system (command)) == -1)
mutt_error (_("Error running \"%s\"!"), command);
}
else
{
- endwin ();
+ mutt_endwin (NULL);
if (mutt_system (command) == -1)
mutt_error (_("Error running \"%s\"!"), command);
}
int tempfd = -1, pagerfd = -1;
if (!use_pager)
- endwin ();
+ mutt_endwin (NULL);
if (use_pager || use_pipe)
{
return 0;
}
- endwin ();
+ mutt_endwin (NULL);
if (fp)
{
strfcpy (command, entry->printcommand, sizeof (command));
piped = rfc1524_expand_command (a, newfile, type, command, sizeof (command));
- endwin ();
+ mutt_endwin (NULL);
/* interactive program */
if (piped)
{
if ((ifp = fopen (newfile, "r")) != NULL)
{
- endwin ();
+ mutt_endwin (NULL);
thepid = mutt_create_filter (NONULL(PrintCmd), &fpout, NULL, NULL);
mutt_copy_stream (ifp, fpout);
fclose (ifp);
{
fpfilterout = fpout;
fpout = NULL;
- /* endwin (); */
+ /* mutt_endwin (NULL); */
filterpid = mutt_create_filter_fd (DisplayFilter, &fpout, NULL, NULL,
-1, fileno(fpfilterout), -1);
if (filterpid < 0)
{
int r;
- endwin ();
+ mutt_endwin (NULL);
snprintf (buf, sizeof (buf), "%s %s", NONULL(Pager), tempfile);
if ((r = mutt_system (buf)) == -1)
mutt_error (_("Error running \"%s\"!"), buf);
pid_t thepid;
FILE *fpout;
- endwin ();
+ mutt_endwin (NULL);
if (h)
{
if(h->pgp & PGPENCRYPT && !pgp_valid_passphrase())
return 1;
}
- endwin ();
+ mutt_endwin (NULL);
#endif
thepid = mutt_create_filter (cmd, &fpout, NULL, NULL);
if (Context->hdrs[Context->v2r[i]]->tagged)
{
mutt_message_hook (Context, Context->hdrs[Context->v2r[i]], M_MESSAGEHOOK);
- endwin ();
+ mutt_endwin (NULL);
thepid = mutt_create_filter (cmd, &fpout, NULL, NULL);
pipe_msg (Context->hdrs[Context->v2r[i]], fpout, decode);
/* add the message separator */
}
else
{
- endwin ();
+ mutt_endwin (NULL);
thepid = mutt_create_filter (cmd, &fpout, NULL, NULL);
for (i = 0; i < Context->vcount; i++)
{
if(buf[0])
{
CLEARLINE (LINES-1);
- endwin ();
+ mutt_endwin (NULL);
fflush (stdout);
if (mutt_system (buf) != 0 || option (OPTWAITKEY))
mutt_any_key_to_continue (NULL);
{
char cmd[LONG_STRING];
- endwin ();
+ mutt_endwin (NULL);
mutt_expand_file_fmt (cmd, sizeof (cmd), editor, data);
if (mutt_system (cmd) == -1)
mutt_error (_("Error running \"%s\"!"), cmd);
{
char cmd[STRING];
- endwin ();
+ mutt_endwin (NULL);
mutt_expand_file_fmt (cmd, sizeof(cmd), Pager, tempfile);
if (mutt_system (cmd) == -1)
{
char *s = safe_strdup (path);
s[len - 1] = 0;
- endwin ();
+ mutt_endwin (NULL);
*thepid = mutt_create_filter (s, NULL, &f, NULL);
safe_free ((void **) &s);
}
}
fclose (fpout);
- endwin ();
+ mutt_endwin (NULL);
pgp_invoke_import (tempfname);
mutt_any_key_to_continue (NULL);
return;
}
- endwin();
+ mutt_endwin (NULL);
set_option(OPTDONTHANDLEPGPKEYS);
for(; top; top = top->next)
mutt_message _("Invoking PGP...");
if (!isendwin ())
- endwin ();
+ mutt_endwin (NULL);
if (traditional)
{
if (!filter && !option (OPTATTACHSPLIT))
{
- endwin ();
+ mutt_endwin (NULL);
thepid = mutt_create_filter (buf, &state.fpout, NULL, NULL);
pipe_attachment_list (buf, fp, tag, top, filter, &state);
fclose (state.fpout);
{
if (!can_print (top, tag))
return;
- endwin ();
+ mutt_endwin (NULL);
memset (&state, 0, sizeof (STATE));
thepid = mutt_create_filter (NONULL (PrintCmd), &state.fpout, NULL, NULL);
print_attachment_list (fp, tag, top, &state);
}
if (!option (OPTNOCURSES))
- endwin ();
+ mutt_endwin (NULL);
if ((i = mutt_system (cmd)))
{