commit 2a285d2da45d416eff4ad1f1a809630b434fd4db
parent 0bcd0899887d82c31c38ed05273ac2b29b898b86
Author: Frederic Cambus <fred@statdns.com>
Date: Wed, 20 Nov 2019 22:30:18 +0100
Merge pull request #1 from bart-d/master
accept amount of columns as an option
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/ansilove.js b/ansilove.js
@@ -1881,6 +1881,9 @@ var AnsiLove = (function () {
columns = 80;
}
+ // Set the amount of <columns> is set in <options>, use it.
+ columns = options.columns || columns;
+
// Set the amount of <rows> is set in <options>, use it.
rows = options.rows || 26;