Fix backspace on demo

buffer.x will probably be public API soon (#1994)

Fixes #1989
This commit is contained in:
Daniel Imms
2019-04-04 00:01:43 -04:00
parent e402dba635
commit b18829963c
+1 -1
View File
@@ -172,7 +172,7 @@ function runFakeTerminal(): void {
term.prompt();
} else if (ev.keyCode === 8) {
// Do not delete the prompt
if (term.x > 2) {
if (term._core.buffer.x > 2) {
term.write('\b \b');
}
} else if (printable) {