aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-alt-random-writes.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/generate-alt-random-writes.py b/scripts/generate-alt-random-writes.py
index 8aa4835c..33033081 100755
--- a/scripts/generate-alt-random-writes.py
+++ b/scripts/generate-alt-random-writes.py
@@ -59,6 +59,11 @@ def main():
if lines is None or cols is None or height is None or width is None:
raise Exception('could not get terminal width/height; use --rows and --cols')
+ assert lines > 0, f'{lines}'
+ assert cols > 0, f'{cols}'
+ assert width > 0, f'{width}'
+ assert height > 0, f'{height}'
+
# Number of characters to write to screen
count = 256 * 1024**1