From 94954a00cddd96b52b2d4e19088a51db6f8a87ea Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 13 Jul 2012 12:59:58 -0400 Subject: Redirect stderr to avoid drawing to the ncurses window; src/textadept.c --- src/textadept.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/textadept.c') diff --git a/src/textadept.c b/src/textadept.c index 06d4a98a..de99f86b 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -2273,6 +2273,7 @@ int main(int argc, char **argv) { #elif NCURSES scintilla_refresh(focused_view); + stderr = freopen("/dev/null", "w", stderr); // redirect stderr // Ignore some termios (from GNU Nano). tcgetattr(0, &term); term.c_iflag &= ~IEXTEN, term.c_iflag &= ~IXON; -- cgit v1.2.3