How to use the xterm/lib/addons/webLinks/webLinks.webLinksInit function in xterm

To help you get started, weโ€™ve selected a few xterm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Qihoo360 / wayne / src / frontend / src / app / portal / pod-terminal / pod-terminal.component.ts View on Github external
onConnectionOpen(data: any): void {
    this.socket.send(JSON.stringify({'Op': 'bind', 'data': JSON.stringify(data)}));
    winptyCompat.winptyCompatInit(this.xterm);
    webLinks.webLinksInit(this.xterm);
    this.onTerminalResize();
    this.xterm.focus();
  }
github JunoLab / atom-ink / lib / console2 / console.js View on Github external
cursorBlink: false,
      cols: 100,
      rows: 30,
      scrollback: 5000,
      tabStopWidth: 4
    }, opts)

    if (process.platform === 'win32') {
      opts.windowsMode = true
    }

    this.terminal = new Terminal(opts)

    this.setTitle('Terminal')

    webLinks.webLinksInit(this.terminal, (ev, uri) => openExternal(uri))

    this.persistentState = {}
    this.persistentState.opts = opts
    this.classname = ''

    this.enterhandler = (e) => {
      if (!this.ty && e.keyCode == 13) {
        if (this.startRequested) {
          this.startRequested()
        }
        return false
      }
      return e
    }

    this.terminal.attachCustomKeyEventHandler(this.enterhandler)