Fix backspace on demo
buffer.x will probably be public API soon (#1994) Fixes #1989
This commit is contained in:
+1
-1
@@ -172,7 +172,7 @@ function runFakeTerminal(): void {
|
|||||||
term.prompt();
|
term.prompt();
|
||||||
} else if (ev.keyCode === 8) {
|
} else if (ev.keyCode === 8) {
|
||||||
// Do not delete the prompt
|
// Do not delete the prompt
|
||||||
if (term.x > 2) {
|
if (term._core.buffer.x > 2) {
|
||||||
term.write('\b \b');
|
term.write('\b \b');
|
||||||
}
|
}
|
||||||
} else if (printable) {
|
} else if (printable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user