Skip to content

Commit

Permalink
Fix backspace on demo
Browse files Browse the repository at this point in the history
buffer.x will probably be public API soon (xtermjs#1994)

Fixes xtermjs#1989
  • Loading branch information
Tyriar committed Apr 4, 2019
1 parent e402dba commit b188299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b188299

Please sign in to comment.