Added scrolling.

This commit is contained in:
Nathan Byrd
2023-09-20 23:00:32 +00:00
parent f3c9afc684
commit 826db2d718
2 changed files with 20 additions and 0 deletions

View File

@@ -316,6 +316,12 @@ function display(client, art, options, cb) {
}
});
ansiParser.on('scroll', (scrollY) => {
_.forEach(mciMap, (mciInfo) => {
mciInfo.position[0] -= scrollY;
});
});
ansiParser.on('literal', literal => client.term.write(literal, false));
ansiParser.on('control', control => client.term.rawWrite(control));