Tue Aug 28 00:30:55 2001 Michael Jennings (mej)
Let's see if this fixes the PrintScreen problems.... SVN revision: 5300
This commit is contained in:
parent
33366620e7
commit
e03f5ed13c
|
@ -4372,3 +4372,7 @@ Mon Aug 27 14:48:17 2001 Michael Jennings (mej)
|
|||
|
||||
Minor typos in the mutt menus.
|
||||
----------------------------------------------------------------------
|
||||
Tue Aug 28 00:30:55 2001 Michael Jennings (mej)
|
||||
|
||||
Let's see if this fixes the PrintScreen problems....
|
||||
----------------------------------------------------------------------
|
||||
|
|
|
@ -1098,6 +1098,7 @@ install_handlers(void)
|
|||
{
|
||||
/* Ignore SIGHUP */
|
||||
/* signal(SIGHUP, handle_exit_signal); */
|
||||
signal(SIGHUP, SIG_IGN);
|
||||
#ifndef __svr4__
|
||||
signal(SIGINT, handle_exit_signal);
|
||||
#endif
|
||||
|
@ -1110,6 +1111,7 @@ install_handlers(void)
|
|||
signal(SIGFPE, handle_crash);
|
||||
signal(SIGILL, handle_crash);
|
||||
signal(SIGSYS, handle_crash);
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
}
|
||||
|
||||
/* Exit gracefully, clearing the utmp entry and restoring tty attributes */
|
||||
|
@ -2290,17 +2292,19 @@ init_command(char **argv)
|
|||
void
|
||||
tt_winsize(int fd)
|
||||
{
|
||||
|
||||
struct winsize ws;
|
||||
|
||||
if (fd < 0)
|
||||
return;
|
||||
if (fd < 0) return;
|
||||
|
||||
MEMSET(&ws, 0, sizeof(struct winsize));
|
||||
|
||||
ws.ws_col = (unsigned short) TermWin.ncol;
|
||||
ws.ws_row = (unsigned short) TermWin.nrow;
|
||||
ws.ws_col = (unsigned short) TermWin.ncol;
|
||||
#ifndef __CYGWIN32__
|
||||
ws.ws_xpixel = ws.ws_ypixel = 0;
|
||||
ws.ws_xpixel = (unsigned short) TermWin.width;
|
||||
ws.ws_ypixel = (unsigned short) TermWin.height;
|
||||
#endif
|
||||
D_CMD(("%hdx%hd (%hdx%hd)\n", ws.ws_row, ws.ws_col, ws.ws_xpixel, ws.ws_ypixel));
|
||||
ioctl(fd, TIOCSWINSZ, &ws);
|
||||
}
|
||||
|
||||
|
|
|
@ -3677,7 +3677,7 @@ save_config(char *path, unsigned char save_theme)
|
|||
unsigned long tmp;
|
||||
|
||||
if ((XGetFontProperty(menu->font, XA_FONT_NAME, &tmp)) == True) {
|
||||
fprintf(fp, " font \"%s\"\n", ((char *) tmp));
|
||||
fprintf(fp, " font '%s'\n", ((char *) tmp));
|
||||
}
|
||||
}
|
||||
for (j = 0; j < menu->numitems; j++) {
|
||||
|
@ -3693,13 +3693,13 @@ save_config(char *path, unsigned char save_theme)
|
|||
}
|
||||
fprintf(fp, " action ");
|
||||
if (item->type == MENUITEM_STRING) {
|
||||
fprintf(fp, "string \"%s\"\n", safe_print_string(item->action.string, -1));
|
||||
fprintf(fp, "string '%s'\n", safe_print_string(item->action.string, -1));
|
||||
} else if (item->type == MENUITEM_ECHO) {
|
||||
fprintf(fp, "echo \"%s\"\n", safe_print_string(item->action.string, -1));
|
||||
fprintf(fp, "echo '%s'\n", safe_print_string(item->action.string, -1));
|
||||
} else if (item->type == MENUITEM_SUBMENU) {
|
||||
fprintf(fp, "submenu \"%s\"\n", (item->action.submenu)->title);
|
||||
} else if (item->type == MENUITEM_SCRIPT) {
|
||||
fprintf(fp, "script \"%s\"\n", item->action.script);
|
||||
fprintf(fp, "script '%s'\n", item->action.script);
|
||||
}
|
||||
fprintf(fp, " end\n");
|
||||
}
|
||||
|
@ -3754,13 +3754,13 @@ save_config(char *path, unsigned char save_theme)
|
|||
}
|
||||
fprintf(fp, " to ");
|
||||
if (action->type == ACTION_STRING) {
|
||||
fprintf(fp, "string \"%s\"\n", safe_print_string(action->param.string, -1));
|
||||
fprintf(fp, "string '%s'\n", safe_print_string(action->param.string, -1));
|
||||
} else if (action->type == ACTION_ECHO) {
|
||||
fprintf(fp, "echo \"%s\"\n", safe_print_string(action->param.string, -1));
|
||||
fprintf(fp, "echo '%s'\n", safe_print_string(action->param.string, -1));
|
||||
} else if (action->type == ACTION_MENU) {
|
||||
fprintf(fp, "menu \"%s\"\n", (action->param.menu)->title);
|
||||
} else if (action->type == ACTION_SCRIPT) {
|
||||
fprintf(fp, "script \"%s\"\n", action->param.script);
|
||||
fprintf(fp, "script '%s'\n", action->param.script);
|
||||
}
|
||||
}
|
||||
fprintf(fp, "end actions\n\n");
|
||||
|
@ -3851,7 +3851,7 @@ save_config(char *path, unsigned char save_theme)
|
|||
fprintf(fp, "begin misc\n");
|
||||
#ifdef PRINTPIPE
|
||||
if (rs_print_pipe) {
|
||||
fprintf(fp, " print_pipe \"%s\"\n", rs_print_pipe);
|
||||
fprintf(fp, " print_pipe '%s'\n", rs_print_pipe);
|
||||
}
|
||||
#endif
|
||||
fprintf(fp, " save_lines %d\n", rs_saveLines);
|
||||
|
@ -3868,7 +3868,7 @@ save_config(char *path, unsigned char save_theme)
|
|||
}
|
||||
#ifdef CUTCHAR_OPTIONS
|
||||
if (rs_cutchars) {
|
||||
fprintf(fp, " cut_chars \"%s\"\n", rs_cutchars);
|
||||
fprintf(fp, " cut_chars '%s'\n", rs_cutchars);
|
||||
}
|
||||
#endif
|
||||
fprintf(fp, "end misc\n\n");
|
||||
|
|
Loading…
Reference in New Issue