diff options
author | Michael Jennings <mej@kainx.org> | 2001-08-28 07:36:44 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2001-08-28 07:36:44 +0000 |
commit | e03f5ed13cbb21a7afa7486bec39f0dccb4c3cf2 (patch) | |
tree | 8fa4d68207371dd38092eb64eaef7672636f8638 | |
parent | 33366620e70956dcefd7b3c0e13d524260e98728 (diff) | |
download | eterm-e03f5ed13cbb21a7afa7486bec39f0dccb4c3cf2.tar.gz |
Tue Aug 28 00:30:55 2001 Michael Jennings (mej)
Let's see if this fixes the PrintScreen problems....
SVN revision: 5300
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/command.c | 14 | ||||
-rw-r--r-- | src/options.c | 18 |
3 files changed, 22 insertions, 14 deletions
@@ -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.... +---------------------------------------------------------------------- diff --git a/src/command.c b/src/command.c index 2e3d956..fef5769 100644 --- a/src/command.c +++ b/src/command.c @@ -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); } diff --git a/src/options.c b/src/options.c index 7d3d596..d84c4bd 100644 --- a/src/options.c +++ b/src/options.c @@ -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"); |