How to use the vscode-xterm.Terminal function in vscode-xterm

To help you get started, we’ve selected a few vscode-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 freenas / webui / src / app / pages / vm / vm-cards / vm-serial-shell / vmserial-shell.component.ts View on Github external
initializeTerminal() {
    const domHeight = document.body.offsetHeight;
    let rowNum = (domHeight * 0.75 - 104) / 21;
    if (rowNum < 10) {
      rowNum = 10;
    }
    
    this.xterm = new Terminal({
      'cursorBlink': true,
      'tabStopWidth': 8,
      'cols': 80,
      'rows': parseInt(rowNum.toFixed(),10),
      'focus': true
    });
  
    this.xterm.open(this.container.nativeElement);
    this.xterm.attach(this.ss);
    this.xterm._initialized = true;
    // this.xterm.send('attachconsole.py /dev/nmdm'+this.pk+'B\n')
    this.xterm.send('cu -l /dev/nmdm'+this.pk+'B\n');
    this.xterm.send('\r');
  }

vscode-xterm

Full xterm terminal, in your browser

MIT
Latest version published 6 years ago

Package Health Score

69 / 100
Full package analysis

Similar packages