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

Gracefully handle terminal resize and font resize #89

Open
GitSquared opened this issue Sep 8, 2020 · 1 comment
Open

Gracefully handle terminal resize and font resize #89

GitSquared opened this issue Sep 8, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@GitSquared
Copy link
Contributor

Describe the bug
Resizing my terminal's font or resizing the window breaks the presentation. It seems to me these are common enough adjustments for warranting an issue.

Steps to reproduce the bug
Steps used to install present:

  1. pip install present

Steps to reproduce the behavior:

  1. Create a basic slide
  2. Open it with present
  3. Resize your font using terminal emulator shortcuts, or resize the window
  4. Aaaand it's broken :(

Expected behavior

  • Resizing the window or changing the font size triggers a repaint in Present, and the slides automatically adjusts.

Slides
(not relevant)

Screenshots

Resizing demo Changing font size
resize font_size

Environment

  • OS: Linux (5.8.7-arch1-1 #1 SMP PREEMPT Sat, 05 Sep 2020 12:31:32 +0000 x86_64 GNU/Linux)
  • Terminal emulator: Kitty
  • Python version: 3.8.5
  • present version: 0.5.1 (btw, would be nice to be able to do present --version

Additional context
/

✌️

@GitSquared GitSquared added the bug Something isn't working label Sep 8, 2020
@vinayak-mehta
Copy link
Owner

Thanks for the detailed bug report! I'm not sure how to go about handle resizing right now, will have to look into how to do it in asciimatics. But I'll document this behavior in the docs till it gets fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants