+ /*
+ * If an application calls setupterm() rather than initscr() or newterm(),
+ * we will not have the def_prog_mode() call in _nc_setupscreen(). Do it
+ * now anyway, so we can initialize the baudrate.
+ */
+ if (isatty(Filedes)) {
+ def_prog_mode();
+ baudrate();
+ }
+