diff --git a/ascii.c b/ascii.c index 6b37e3d..fe7a6d4 100644 --- a/ascii.c +++ b/ascii.c @@ -195,7 +195,7 @@ int main(int argc, char *argv[]) perror("fopen(/dev/tty)"); exit(EXIT_FAILURE); } - SCREEN *screen = newterm(term_type, stdout, term_in); + SCREEN *screen = newterm(term_type, stderr, term_in); set_term(screen); set_escdelay(5); W = getmaxx(stdscr); @@ -351,7 +351,7 @@ int main(int argc, char *argv[]) case 'q': case 'Q': case KEY_CANCEL: case KEY_CLOSE: case KEY_EXIT: case 27: endwin(); - write(1, outbuf, buf_i); + write(STDOUT_FILENO, outbuf, buf_i); return 0; default: goto next_input;