package.json
file is empty, just {}
Maybe I should add specific example for prompt into a wiki, because it may be not obvious that you can use the same things as for echo
It would it really helpful, if you add an example how to change the style
and color
for prompt in the wiki :heart:
interactive console
page, if there is a way to change the style please do let me know
$.terminal.new_formatter(function(string, position) {
return string.replace(/(\s*\S+)(\s?.*)/, function(_, name, args) {
return '[[;red;]' + name + '][[;blue;]' + args + ']';
})
});
I made mistake the position is an option
:confused: This didn't seem to solve it
echo
, prompt
and command
Thanks a lot for helping me out :smile: and making such a great library$.terminal.new_formatter(function(string, options) { if (!options.command) { return string; } return string.replace(/(\s*\S+)(\s?.*)/, function(_, name, args) { return '[[;red;]' + name + '][[;blue;]' + args + ']'; }); });