]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/lib_nl.c
ncurses 5.0
[ncurses.git] / ncurses / base / lib_nl.c
similarity index 93%
rename from ncurses/lib_nl.c
rename to ncurses/base/lib_nl.c
index bb165dbc5791430e9d490f4558cc23e8e9645ad4..75d4a638148d6547327cfaff9b2aa2292ea8b8e3 100644 (file)
@@ -42,9 +42,8 @@
  */
 
 #include <curses.priv.h>
-#include <term.h>      /* cur_term */
 
-MODULE_ID("$Id: lib_nl.c,v 1.2 1998/02/11 12:14:01 tom Exp $")
+MODULE_ID("$Id: lib_nl.c,v 1.4 1999/10/22 22:31:51 tom Exp $")
 
 #ifdef __EMX__
 #include <io.h>
@@ -58,8 +57,8 @@ int nl(void)
        SP->_nl = TRUE;
 
 #ifdef __EMX__
-       fflush(SP->_ofp);
-       _fsetmode(SP->_ofp, "t");
+       _nc_flush();
+       _fsetmode(NC_OUTPUT, "t");
 #endif
 
        returnCode(OK);
@@ -72,8 +71,8 @@ int nonl(void)
        SP->_nl = FALSE;
 
 #ifdef __EMX__
-       fflush(SP->_ofp);
-       _fsetmode(SP->_ofp, "b");
+       _nc_flush();
+       _fsetmode(NC_OUTPUT, "b");
 #endif
 
        returnCode(OK);