Clear alt buffer with erase attributes upon entering

This commit is contained in:
Jeff Smith
2018-11-16 14:33:37 -06:00
parent a19d93851c
commit 2f90035243
5 changed files with 14 additions and 6 deletions
+5
View File
@@ -561,5 +561,10 @@ describe('InputHandler', () => {
// Text color of 'TEST' should be red
expect((term.buffer.lines.get(1).get(0)[CHAR_DATA_ATTR_INDEX] >> 9) & 0x1ff).to.equal(1);
});
it('should handle DECSET/DECRST 1049 - clears alt buffer with erase attributes', () => {
handler.parse('\x1b[42m\x1b[?1049h');
// Buffer should be filled with green background
expect(term.buffer.lines.get(20).get(10)[CHAR_DATA_ATTR_INDEX] & 0x1ff).to.equal(2);
});
});
});