terminal = {
if (!xtermCSS.isConnected) document.body.appendChild(xtermCSS)
const dom = DOM.element('div')
const term = new Terminal({
rows: 16, cols: 72,
cursorBlink: true,
cursorStyle: 'block',
})
const [rl, doReadLine] = makeRL(term, '$ ', processLine)
term.loadAddon(rl)
term.open(dom)
const doReadLineLoop = () => doReadLine().then(() => sleep(50)).then(doReadLineLoop)
doReadLineLoop()
term.dom = dom
return term
}