dont hook signal in MINGW environments like proxspace

This commit is contained in:
iceman1001 2024-04-09 15:30:34 +02:00
commit befb2644d2

View file

@ -161,7 +161,13 @@ void pm3line_init(void) {
using_history(); using_history();
rl_readline_name = "PM3"; rl_readline_name = "PM3";
rl_attempted_completion_function = rl_command_completion; rl_attempted_completion_function = rl_command_completion;
// don't hook signal in MINGW
#if defined(__MINGW32__) || defined(__MINGW64__)
#else
rl_getc_function = getc; rl_getc_function = getc;
#endif
pm3line_install_signals(); pm3line_install_signals();
#ifdef RL_STATE_READCMD #ifdef RL_STATE_READCMD