commit | e7de18e4451760dffbb3170cbd7651d05dd77987 | [log] [tgz] |
---|---|---|
author | Jack Palevich <jackpal@google.com> | Mon May 24 20:37:38 2010 +0800 |
committer | Jack Palevich <jackpal@google.com> | Tue May 25 07:53:13 2010 +0800 |
tree | a6587f12511a92a165f4ac7c776373ece329d819 | |
parent | f6e83f7eb8cab99b416c5be299f70adc4722a8bf [diff] [blame] |
Add simple readline-like input editing to the android shell. Adapted from http://github.com/antirez/linenoise
diff --git a/sh/parser.c b/sh/parser.c index 67de58e..d956375 100644 --- a/sh/parser.c +++ b/sh/parser.c
@@ -1628,7 +1628,10 @@ #ifdef WITH_HISTORY if (!el) #endif +#ifdef WITH_LINENOISE +#else out2str(getprompt(NULL)); +#endif } /*