Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const { clipboard } = require('electron');
const SSHUtils = require('ssh2-promise').Utils;
class Term{
constructor($elem, ssh){
this.$elem = $elem;
this.ssh = ssh;
this.$header = $elem.parent().find('.header');
this.resizeListener = function(){
this.term.fit();
this.term.buffer.y--
this.term.scroll();
setTimeout(() => {
this.term.fit();
this.term.buffer.y--
this.term.scroll();
}, 200)
}.bind(this);