|
|
| version 1.1.1.1.2.4, 2010/04/20 11:48:49 | version 1.1.1.1.2.5, 2010/04/20 12:09:48 |
|---|---|
| Line 144 inline int cliTTY(const char *term, FILE *inp, FILE *o | Line 144 inline int cliTTY(const char *term, FILE *inp, FILE *o |
| } | } |
| /* | /* |
| * cli_ReadHistory() Read CLI History from file | |
| * @csFile = history file name, if NULL default history name is ".aitcli.history" | |
| * return: -1 error; != -1 readed ok | |
| */ | |
| inline int cli_ReadHistory(const char *csFile) | |
| { | |
| return read_history(!csFile ? ".aitcli.history" : csFile); | |
| } | |
| /* | |
| * cli_WriteHistory() Write CLI History to file | |
| * @csFile = history file name, if NULL default history name is ".aitcli.history" | |
| * return: -1 error; != -1 readed ok | |
| */ | |
| inline int cli_WriteHistory(const char *csFile) | |
| { | |
| return write_history(!csFile ? ".aitcli.history" : csFile); | |
| } | |
| /* | |
| * cliInit() Initialize Readline | * cliInit() Initialize Readline |
| * @csProg = program name | * @csProg = program name |
| * return: none | * return: none |