Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore tw if its value is invalid #34

Merged
merged 1 commit into from
Jul 23, 2020
Merged

Ignore tw if its value is invalid #34

merged 1 commit into from
Jul 23, 2020

Conversation

yoichi
Copy link
Contributor

@yoichi yoichi commented Jul 23, 2020

terminal.GetSize(1) returns tw = 0 sometimes and it fails to write image with the error:
ANSImage: height or width must be >=2

The behaviour is observed with docker image built/run on Chrome OS (Chromebook C101PA-OP1) :
Linux penguin 5.4.40-04224-g891a6cce2d44 #1 SMP PREEMPT Tue Jun 23 20:13:49 PDT 2020 aarch64 GNU/Linux

terminal.GetSize(1) returns tw = 0 sometimes and it fails to write image with the error:
ANSImage: height or width must be >=2

The behaviour is observed with docker image built/run on Chrome OS (Chromebook C101PA-OP1) :
Linux penguin 5.4.40-04224-g891a6cce2d44 mattn#1 SMP PREEMPT Tue Jun 23 20:13:49 PDT 2020 aarch64 GNU/Linux
@mattn mattn merged commit 520473e into mattn:master Jul 23, 2020
@mattn
Copy link
Owner

mattn commented Jul 23, 2020

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants