|
|
|
@ -111,8 +111,11 @@ class Terminal extends BaseApi { |
|
|
|
|
if (self._view.el) return self._view.el |
|
|
|
|
self._view.journal = yo`<div class=${css.journal}></div>` |
|
|
|
|
self._view.input = yo` |
|
|
|
|
<span class=${css.input} spellcheck="false" onload=${() => { this.focus() }} contenteditable="true" onpaste=${paste} onkeydown=${change}></span> |
|
|
|
|
<span class=${css.input} onload=${() => { this.focus() }} onpaste=${paste} onkeydown=${change}></span> |
|
|
|
|
` |
|
|
|
|
self._view.input.setAttribute('spellcheck', 'false') |
|
|
|
|
self._view.input.setAttribute('contenteditable', 'true') |
|
|
|
|
|
|
|
|
|
self._view.input.innerText = '\n' |
|
|
|
|
self._view.cli = yo` |
|
|
|
|
<div class="${css.cli}"> |
|
|
|
|