/[mailutils]/mailutils/mh/mhl.c
ViewVC logotype

Diff of /mailutils/mh/mhl.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by gray, Thu Feb 20 14:00:34 2003 UTC revision 1.5 by gray, Sat Mar 15 23:24:36 2003 UTC
# Line 62  struct mh_option mh_option[] = { Line 62  struct mh_option mh_option[] = {
62  };  };
63    
64  static int interactive;  /* Using interactive output */  static int interactive;  /* Using interactive output */
65  static int bell = 1;     /* Ring the bell after each page of output */  static int mhl_fmt_flags; /* MHL format flags. Controlled by --bell
66  static int clear = 0;    /* Clear the screen after each page of output */                               and --clear */
67  static int length = 40;  /* Length of output page */  static int length = 40;  /* Length of output page */
68  static int width = 80;   /* Width of output page */  static int width = 80;   /* Width of output page */
69  static char *formfile = MHLIBDIR "/mhl.format";  static char *formfile = MHLIBDIR "/mhl.format";
# Line 82  opt_handler (int key, char *arg, void *u Line 82  opt_handler (int key, char *arg, void *u
82        break;        break;
83    
84      case ARG_BELL:      case ARG_BELL:
85        bell = is_true (arg);        if (is_true (arg))
86            mhl_fmt_flags |= MHL_BELL;
87        break;        break;
88                
89      case ARG_NOBELL:      case ARG_NOBELL:
90        bell = 0;        mhl_fmt_flags &= ~MHL_BELL;
91        break;        break;
92                
93      case ARG_CLEAR:      case ARG_CLEAR:
94        clear = is_true (arg);        if (is_true (arg))
95            mhl_fmt_flags |= MHL_CLEARSCREEN;
96        break;        break;
97                
98      case ARG_NOCLEAR:      case ARG_NOCLEAR:
99        clear = 0;        mhl_fmt_flags &= ~MHL_CLEARSCREEN;
100        break;        break;
101                
102      case ARG_FORM:      case ARG_FORM:
# Line 197  list_message (char *name, stream_t outpu Line 199  list_message (char *name, stream_t outpu
199      }      }
200    else    else
201      {      {
202        mhl_format_run (format, width, length, clear, bell, msg, output);        mhl_format_run (format, width, length, mhl_fmt_flags, msg, output);
203        message_unref (msg);        message_unref (msg);
204      }      }
205  }  }
# Line 225  main (int argc, char **argv) Line 227  main (int argc, char **argv)
227      nomoreproc = 1;      nomoreproc = 1;
228    
229    if (!interactive)    if (!interactive)
230      bell = 0;      mhl_fmt_flags &= ~MHL_BELL;
231        
232    output = open_output ();    output = open_output ();
233        

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26