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

terminal too small throws a silent exception #1

Closed
bubaflub opened this issue Jun 30, 2014 · 1 comment
Closed

terminal too small throws a silent exception #1

bubaflub opened this issue Jun 30, 2014 · 1 comment

Comments

@bubaflub
Copy link

Opening up a new terminal window in iTerm2 defaults (for me) to 80x25. When I run art.py in that window the program immediately exits without any feedback. Looking at at art.log

ERROR:root:Exception: Traceback (most recent call last):
ERROR:root:Exception: File "art.py", line 50, in
main()
ERROR:root:Exception: File "art.py", line 46, in main
matrix.show()
ERROR:root:Exception: File "/Users/bkuo/work/rop/opc/matrix.py", line 212, in show
self.ansi.show(pixels)
ERROR:root:Exception: File "/Users/bkuo/work/rop/opc/ansiclient.py", line 149, in show
stdscr.addstr(" | \n")
ERROR:root:Exception: error: addstr() returned ERR

The terminal window needs to be a bit bigger so it can display. Let's get a better error message to the user.

ak15199 added a commit that referenced this issue Jul 1, 2014
generates a more informative error message when the tty is
too squished in ansiclient mode.
@ak15199
Copy link
Owner

ak15199 commented Jul 1, 2014

Thanks, Bob!

Fixed in commit 38004ca.

@ak15199 ak15199 closed this as completed Jul 1, 2014
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

No branches or pull requests

2 participants