diff options
author | 2012-07-13 12:59:58 -0400 | |
---|---|---|
committer | 2012-07-13 12:59:58 -0400 | |
commit | 94954a00cddd96b52b2d4e19088a51db6f8a87ea (patch) | |
tree | 543a234aef7d34438612db9bc7241c418ad61fe6 | |
parent | 66e694ba13c6c32910de3078d64a04efcbe87c08 (diff) | |
download | textadept-94954a00cddd96b52b2d4e19088a51db6f8a87ea.tar.gz textadept-94954a00cddd96b52b2d4e19088a51db6f8a87ea.zip |
Redirect stderr to avoid drawing to the ncurses window; src/textadept.c
-rw-r--r-- | src/textadept.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |