|
|
| version 1.1.2.1, 2010/06/02 17:17:56 | version 1.1.2.2, 2010/06/03 23:29:32 |
|---|---|
| Line 131 | Line 131 |
| #define STRSIZ 256 | #define STRSIZ 256 |
| #define MAX_BINDKEY 559 | #define MAX_BINDKEY 559 |
| #define HISTORY_LINES 100 | |
| #define HISTORY_FILE "/tmp/.CLI.history" | #define HISTORY_FILE "/tmp/.CLI.history" |
| #define CLI_PROMPT "test> " | |
| #define LINEMODE_RAW -1 | |
| #define LINEMODE_INS 0 | |
| #define LINEMODE_OVER 1 | |
| #define RETCODE_ERR -1 | #define RETCODE_ERR -1 |
| #define RETCODE_OK 0 | #define RETCODE_OK 0 |
| #define RETCODE_EOL 1 | #define RETCODE_EOL 1 |
| Line 155 struct tagHistory { | Line 162 struct tagHistory { |
| typedef TAILQ_HEAD(tqHistoryHead, tagHistory) history_t; | typedef TAILQ_HEAD(tqHistoryHead, tagHistory) history_t; |
| typedef struct { | typedef struct { |
| char line_mode; | |
| char *line_prompt; | |
| int line_bol; | |
| int line_eol; | int line_eol; |
| int line_len; | int line_len; |
| char *line_buf; | char *line_buf; |