test case for clearing cells to the right on early wrap-around

This commit is contained in:
Jörg Breitbart
2020-02-17 12:30:35 +01:00
parent 0c703276b1
commit 7de600cc64
+7
View File
@@ -372,6 +372,13 @@ describe('InputHandler', () => {
container[0] = 0x200B;
inputHandler.print(container, 0, 1);
});
it('should clear cells to the right on early wrap-around', () => {
const term = new TestTerminal({cols: 5, rows: 5, scrollback: 1});
term.writeSync('12345');
term.buffer.x = 0;
term.writeSync('¥¥¥');
assert.deepEqual(getLines(term, 2), ['¥¥', '¥']);
});
});
describe('alt screen', () => {