Does anyone have a code snippet showing how to get Jquery Terminal tab completion working?
http://terminal.jcubic.pl/api_reference.php
I'm getting the function call OK, what's confusing me is how to return the set of possible completion values.
And the doco is leaving me a little in the dark:
completion [function (terminal, string, callback)] — callback need to be executed when list of commands for tab completion is ready, you need to pass array of commands to callback function.
This doesn't seem to work:
FileConsole.prototype.onTab = function(terminal, command, callback) {
callback(['big', 'hairy', 'gorilla']);
};