diff --git a/utils/editor.cpp b/utils/editor.cpp index 5735176c..d655ddc1 100644 --- a/utils/editor.cpp +++ b/utils/editor.cpp @@ -2225,6 +2225,11 @@ void editor_kbkey(struct editor* editor, int kbkey) int main(int argc, char* argv[]) { + if ( !isatty(0) ) + error(1, errno, "standard input"); + if ( !isatty(1) ) + error(1, errno, "standard output"); + struct editor editor; initialize_editor(&editor);