Customize command not found in jquery terminal #947
Thecode764
started this conversation in
General
Replies: 2 comments 1 reply
-
You can do this with strings: $.terminal.defaults.strings.commandNotFound default value is And if you want to do something completely different you can use a fallback function: $('body').terminal([{
help: function () {
},
}, function(command) {
this.echo(`${command} is not what I expected`);
}]); The interpreter can be an array where the last item can be a function, which is executed when the command was not handled by the objects. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please mark the answer as resolved, don't close the discussion so others can find it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi i'm new to jquery terminal how to customize command not found text in jquery terminal
Code
Beta Was this translation helpful? Give feedback.
All reactions