mtytel / cursynth

GNU ncurses terminal synthesizer
http://gnu.org/software/cursynth
GNU General Public License v3.0
446 stars 64 forks source link

Added case for window resize #13

Closed ghost closed 9 years ago

ghost commented 9 years ago

In the current version, Starting in a smaller than window sized terminal would cause word wrapping. The only way to fix it was to stop, resize the window and then restart cursynth.

Adding in the case for KEY_RESIZE in the TextInput(int) will allow the redrawing of the screen as the terminal size changes.

Supporting functions in cursynth.cpp and cursynth_gui.cpp were need to prevent the killing and recreation of the window, but instead clearing the window and redrawing all of the controls.

mtytel commented 9 years ago

Cool, thanks a lot :) Sorry it took a while to get to this.