|
@@ -182,12 +182,14 @@ export class DOMConsole {
|
|
|
}
|
|
|
|
|
|
_appendText (text, type) {
|
|
|
- const divClass = this.getClassForType(type);
|
|
|
- const textDiv = document.createElement('div');
|
|
|
- textDiv.classList.add(divClass);
|
|
|
- textDiv.innerHTML = this.getOutputText(text);
|
|
|
- this.termDiv.insertBefore(textDiv, this.inputDiv);
|
|
|
- this.scrollTerm();
|
|
|
+ setTimeout(() => {
|
|
|
+ const divClass = this.getClassForType(type);
|
|
|
+ const textDiv = document.createElement('div');
|
|
|
+ textDiv.classList.add(divClass);
|
|
|
+ textDiv.innerHTML = this.getOutputText(text);
|
|
|
+ this.termDiv.insertBefore(textDiv, this.inputDiv);
|
|
|
+ this.scrollTerm();
|
|
|
+ }, 50)
|
|
|
}
|
|
|
|
|
|
_appendUserInput (text) {
|