codythegreat / dss

Dead Simple Slides - A terminal based presentation tool with Vim style keybindings
MIT License
54 stars 3 forks source link

Slides break when zoomed in too much #18

Closed codythegreat closed 5 years ago

codythegreat commented 5 years ago

Bug: Slides break with excessive zooming

If a user zoomes in far enough on their screen the lines of the slide will eventually "wrap" down to the next line. This causes what looks likes gaps between each lines, and poor readability.

I think that the best solution to handle this is a warning. If DSS detects that max_x < Slide->x instead of making a call to printw for Slide->content we'll make a call like this: printw("Terminal zoom/size error: You terminal window is too small to display the slide. Try zooming out or resizing the window");

Upon zooming out the loop would refresh, and if the max_x < Slide->x logic returns false the user will then see the properly displayed slide.

codythegreat commented 5 years ago

commit f49fc654a004c830e682509d08da547e5ef68f1c adds a soft error message for this issue