moved file handling to mdp.c completely
[smdp.git] / viewer.c
index fd62cff..a97e44d 100644 (file)
--- a/viewer.c
+++ b/viewer.c
@@ -81,16 +81,13 @@ int ncurses_display(deck_t *deck, int notrans, int nofade) {
     // set locale to display UTF-8 correctly in ncurses
     setlocale(LC_CTYPE, "");
 
-    // replace stdin with current tty if markdown input was piped
-    freopen("/dev/tty", "rw", stdin);
-
     // init ncurses
     initscr();
 
     if((max_cols > COLS) ||
        (max_lines + bar_top + bar_bottom + 2 > LINES)) {
 
-        fprintf(stderr, "Error: Terminal size %ix%i to small. Need at least %ix%i.\n",
+        fprintf(stderr, "Error: Terminal size %ix%i too small. Need at least %ix%i.\n",
             COLS, LINES, max_cols, max_lines + bar_top + bar_bottom + 2);
         endwin();
         return(1);