port to windows with Visual Studio
strip NL and CR from line_t
check if setlocale() worked
check KEY_RESIZE, but it doesnt work on Windows