version 1.14, 2014/04/26 05:58:43 |
version 1.15, 2014/04/29 12:11:25 |
|
|
extern int shift_count; |
extern int shift_count; |
extern int oldbot; |
extern int oldbot; |
extern int forw_prompt; |
extern int forw_prompt; |
extern int be_helpful; |
|
extern int less_is_more; |
extern int less_is_more; |
|
|
#if SHELL_ESCAPE |
#if SHELL_ESCAPE |
|
|
static int optgetname; |
static int optgetname; |
static POSITION bottompos; |
static POSITION bottompos; |
static int save_hshift; |
static int save_hshift; |
static char *help_prompt; |
|
#if PIPEC |
#if PIPEC |
static char pipec; |
static char pipec; |
#endif |
#endif |
|
|
clear_bot(); |
clear_bot(); |
clear_cmd(); |
clear_cmd(); |
forw_prompt = 0; |
forw_prompt = 0; |
p = help_prompt ? help_prompt : pr_string(); |
p = pr_string(); |
if (is_filtering()) |
if (is_filtering()) |
putstr("& "); |
putstr("& "); |
if (p == NULL || *p == '\0') |
if (p == NULL || *p == '\0') |
|
|
{ |
{ |
at_enter(AT_STANDOUT); |
at_enter(AT_STANDOUT); |
putstr(p); |
putstr(p); |
if (be_helpful && !help_prompt && strlen(p) + 40 < sc_width) |
|
putstr(" [Press space to continue, 'q' to quit.]"); |
|
at_exit(); |
at_exit(); |
} |
} |
help_prompt = NULL; |
|
clear_eol(); |
clear_eol(); |
} |
} |
|
|
|
|
break; |
break; |
|
|
default: |
default: |
if (be_helpful) |
bell(); |
help_prompt = "[Press 'h' for instructions.]"; |
|
else |
|
bell(); |
|
break; |
break; |
} |
} |
} |
} |