pixel / hexedit

View and edit files in hexadecimal or in ASCII
http://rigaux.org/hexedit.html
GNU General Public License v2.0
98 stars 41 forks source link

Ignore KEY_RESIZE in main loop. #33

Closed stoeckmann closed 5 years ago

stoeckmann commented 5 years ago

The KEY_RESIZE key can be encountered while resizing the terminal running hexedit.

As the resizing is handled in an own signal handler, and because this key is not mapped, ignore it in key_to_function so no error message is shown.

As a side note: The signal handler is not thread-safe, but that is a subject for another patch.

Signed-off-by: Tobias Stoeckmann tobias@stoeckmann.org