-
Notifications
You must be signed in to change notification settings - Fork 279
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
catch all curses addwstr() errors and print a helpful error message #64
Comments
I haven't worked with curses, so maybe this doesn't apply. With Qt you have lots of callbacks for handling events. For every one of them I wanted an error handler that would pop up a dialog with (otherwise) uncaught exceptions. Rather than strewing that handling into every callback I used |
I'll just add more data here. I ran into this when running in Terminal Window in Ubuntu and switching off the plotting machine in my HDMI switcher, plotman crashes when a plot ends (sorry for the lack of line breaks, this is how it pasted):
|
I do get the same error running
|
I just maximized the terminal, run it again and it worked. |
addwstr() is used to display text in curses and throws an error if there's not enough space for the text.
aside from trying to not add too much text, we could at least wrap the writes in a
try
and catch the error and print out something like "try increasing your terminal size".current workaround: try increasing your terminal size...
The text was updated successfully, but these errors were encountered: