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"; |
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: |
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 |
} |
} |
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 |
|
|