Allow setting the escape key delay
By default ncurses waits a full second after the escape key is pressed before returning it from wget_wch(), to see if the remainder of an escape sequence is present. This is quite painful when using programs inside mtm that use the escape key often (e.g. modal text editors like vim).
This PR exposes this delay as part of config.h.
tmux exposes this as the escape-time setting, while screen exposes this as maptimeout.
I have selected 500 ms as a default to match tmux, although in practice for local usage a setting of 5 ms or less is appropriate.
You can set the desirable value in the environment variable ESCDELAY, before calling mtm, achieving the same result without changing the source code.
Nonetheless, a more sensible default value would be nice. Here I use 100 ms.
Thank you!