Skip to content

Commit

Permalink
Fix resizing in nullBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Mar 26, 2024
1 parent 63d1a2f commit 83236f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/buffer.js
Expand Up @@ -24,6 +24,9 @@ function nullBuffer(feed) {
pushEvent(event) {
if (event[1] === "o") {
feed(event[2]);
} else if (event[1] === "r") {
const [cols, rows] = event[2].split("x");
feed(`\x1b[8;${rows};${cols};t`);
}
},

Expand Down

0 comments on commit 83236f8

Please sign in to comment.