fix display problem with tabs on win32tty

This commit is contained in:
nethack.allison
2003-07-27 03:22:15 +00:00
parent cadd29b13a
commit b750eee32a
8 changed files with 60 additions and 2 deletions

View File

@@ -291,8 +291,19 @@ char *argv[];
# endif
#endif
if (!*plname)
if (!*plname) {
#ifdef WIN32CON
boolean revert = FALSE;
if (!iflags.rawio) {
set_output_mode(1);
revert = TRUE;
}
#endif
askname();
#ifdef WIN32CON
if (revert && iflags.rawio) set_output_mode(0);
#endif
}
plnamesuffix(); /* strip suffix from name; calls askname() */
/* again if suffix was whole name */
/* accepts any suffix */

View File

@@ -416,6 +416,9 @@ msmsg VA_DECL(const char *, fmt)
if (iflags.grmode)
gr_finish();
# endif
#ifdef WIN32CON
if (iflags.rawio) set_output_mode(0);
#endif
Vprintf(fmt, VA_ARGS);
flushout();
VA_END();

View File

@@ -75,6 +75,9 @@ error VA_DECL(const char *,s)
VA_INIT(s, const char *);
/* error() may get called before tty is initialized */
if (iflags.window_inited) end_screen();
#ifdef WIN32CON
if (iflags.rawio) set_output_mode(0);
#endif
putchar('\n');
Vprintf(s,VA_ARGS);
putchar('\n');

View File

@@ -263,6 +263,9 @@ gotlock:
# if defined(MSDOS) && defined(NO_TERMS)
if (grmode) gr_init();
# endif
#ifdef WIN32CON
if (!iflags.rawio) set_output_mode(1);
#endif
}
#endif /* PC_LOCKING */