version 1.103, 2020/06/25 20:38:41 |
version 1.104, 2020/07/26 21:59:16 |
|
|
#define CMD_up 25 |
#define CMD_up 25 |
#define CMD_pagedown 26 |
#define CMD_pagedown 26 |
#define CMD_pageup 27 |
#define CMD_pageup 27 |
|
#define CMD_grep2 28 |
|
|
static void |
static void |
usage(void) |
usage(void) |
|
|
char ch, *iptr; |
char ch, *iptr; |
int change, i; |
int change, i; |
struct pollfd pfd[1]; |
struct pollfd pfd[1]; |
static char command_chars[] = "\f qh?en#sdkriIuSopCHg+P109)("; |
static char command_chars[] = "\f qh?en#sdkriIuSopCHg+P109)(/"; |
|
|
/* |
/* |
* assume valid command unless told |
* assume valid command unless told |
|
|
break; |
break; |
|
|
case CMD_grep: |
case CMD_grep: |
|
case CMD_grep2: |
new_message(MT_standout, |
new_message(MT_standout, |
"Grep command name: "); |
"Grep command name: "); |
if (readline(tempbuf, sizeof(tempbuf)) > 0) { |
if (readline(tempbuf, sizeof(tempbuf)) > 0) { |