Skip to content

Eclair crashes if users changes the size of the terminal buffer in the server selection menu #8

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

Open
simnalamburt opened this issue Nov 15, 2017 · 1 comment · May be fixed by #38
Open
Labels

Comments

@simnalamburt
Copy link
Contributor

simnalamburt commented Nov 15, 2017

Eclair crashes if users changes the size of the terminal buffer in the server selection menu. Maybe we should add some handlers to the curses module in order to gracefully handle the change of terminal buffer size.

@simnalamburt simnalamburt self-assigned this Nov 15, 2017
@simnalamburt simnalamburt removed their assignment Mar 21, 2020
@johnny603
Copy link

I'm working on this

johnny603 added a commit to johnny603/eclair that referenced this issue Apr 1, 2025
Fixes devsisters#8

Add error handling to the `resize` method in `lib/eclair/grid.rb` to gracefully handle terminal buffer size changes.

* Wrap the existing `resize` method code in a `begin-rescue` block to catch and handle exceptions.
* Add a `log_error` method to log any errors encountered during the resize process to an "error.log" file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants