tags:

views:

38

answers:

1

I'm using V8 javascript interpreter on the command line but it has no tab-completion.

Is it possible to add it somehow?

+1  A: 

I presume you mean the shell sample? (scons sample=shell). It doesn't support tab completion out of the box (there's no config option, etc.), but if you are comfortable with C/C++, it should be relatively trivial to enhance it to add tab completion using GNU Readline.

Likely it doesn't use readline by default because of licensing issues (and why introduce the dependency for a sample), but that doesn't stop you from supporting it in your installation.

Nick Bastin
Isn't there an easier way? I'm not familiar with Readline...
never_had_a_name
Not really - the interactive interpreter is just a sample, not a generally supported tool, so it's not feature rich (plus, more features would make the code potentially harder to read, thus defeating its' usefulness as a sample).
Nick Bastin