Differences From Artifact [fdb58df6ce]:
- File src/fshell.c — part of check-in [9c90682b02] at 2016-11-16 19:25:34 on branch trunk — Only #include "linenoise.h" in fshell.c on non-Windows platforms (user: andygoth size: 3484)
To Artifact [aaa11e134f]:
- File src/fshell.c — part of check-in [03b6869856] at 2016-11-16 19:29:21 on branch trunk — Enable linenoise multiline editing so long commands and queries may be seen all at once therefore highlighted and copied from xterms (user: andygoth size: 3512) [more...]
| ︙ | |||
59 60 61 62 63 64 65 66 67 68 69 70 71 72 | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | + |
int fDebug;
pid_t childPid;
char *zLine = 0;
fDebug = find_option("debug", 0, 0)!=0;
db_find_and_open_repository(OPEN_ANY_SCHEMA|OPEN_OK_NOT_FOUND, 0);
db_close(0);
sqlite3_shutdown();
linenoiseSetMultiLine(1);
while( (free(zLine), zLine = linenoise("fossil> ")) ){
/* Remember shell history within the current session */
linenoiseHistoryAdd(zLine);
/* Parse the line of input */
n = (int)strlen(zLine);
for(i=0, nArg=1; i<n; i++){
|
| ︙ |