| 243 |
|
|
| 244 |
int display_file_ex(const char *filename, int begin_line, int wait) |
int display_file_ex(const char *filename, int begin_line, int wait) |
| 245 |
{ |
{ |
| 246 |
|
static int show_help = 1; |
| 247 |
char buffer[LINE_BUFFER_LEN]; |
char buffer[LINE_BUFFER_LEN]; |
| 248 |
int ch = 0; |
int ch = 0; |
| 249 |
int input_ok, line, max_lines; |
int input_ok, line, max_lines; |
| 376 |
case '?': |
case '?': |
| 377 |
case 'h': |
case 'h': |
| 378 |
case 'H': |
case 'H': |
| 379 |
|
if (!show_help) |
| 380 |
|
{ |
| 381 |
|
break; |
| 382 |
|
} |
| 383 |
|
|
| 384 |
// Display help information |
// Display help information |
| 385 |
|
show_help = 0; |
| 386 |
display_file_ex(DATA_READ_HELP, begin_line, 1); |
display_file_ex(DATA_READ_HELP, begin_line, 1); |
| 387 |
|
show_help = 1; |
| 388 |
|
|
| 389 |
// Refresh after display help information |
// Refresh after display help information |
| 390 |
c_line_current -= (line - 1); |
c_line_current -= (line - 1); |