import { Output } from './output'; import $ from 'jquery'; export class DOMOutput extends Output { constructor (selector) { super(); this.el = $(selector); } sendOutput (text) { text = text.replace("\n", '
'); text = text.replace(/\t/g,' '); const span = $('').addClass('ivprog-io-output-text').html(text); this.el.append(span); } clear () { this.el.empty(); } }