diff options
Diffstat (limited to 'src/textadept.c')
-rw-r--r-- | src/textadept.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/textadept.c b/src/textadept.c index c0bf836d..28e06ada 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -2504,6 +2504,9 @@ int main(int argc, char **argv) { sigaction(SIGWINCH, &act, NULL); #else freopen("NUL", "w", stderr); // redirect stderr +#if CURSES + freopen("NUL", "w", stdout); // redirect stdout +#endif #endif Scintilla *view = focused_view; @@ -2575,6 +2578,9 @@ int main(int argc, char **argv) { } else quit = FALSE; refresh_all(); view = !command_entry_focused ? focused_view : command_entry; +#if (_WIN32 && CURSES) + mouse_set(ALL_MOUSE_EVENTS); // _popen() and system() change console mode +#endif } endwin(); termkey_destroy(ta_tk); |