Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create FAQ #804

Open
jcubic opened this issue Jul 4, 2022 · 0 comments
Open

Create FAQ #804

jcubic opened this issue Jul 4, 2022 · 0 comments

Comments

@jcubic
Copy link
Owner

jcubic commented Jul 4, 2022

I have an idea for a new feature for jQuery Terminal

Example question that can be put into FAQ:

Search all questions on GitHub and StackOverflow and create a single FAQ with all questions.

  • How to add Links that open in same tab:
$.terminal.defaults.allowedAttributes.push('target');
term.echo('[[!;;;;https://example.com;{"target": "_self"}]example]');
  • How to overwrite ENTER
  • How to disable CTRL+D
const term = $('body').terminal({}, {
    keymap: {
        'CTRL+D': $.noop
    }
});
  • How to make formatted only affect Input Command
$.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 + ']';
    });
});
  • How to disable clear command?
  • How to make Greeting always visible even when clearing the terminal?
  • How to make arguments optional when using a function inside an object?
@jcubic jcubic added this to the 3.0 milestone Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant