MSDOS autocompletion fix

This commit is contained in:
nethack.allison
2002-12-24 02:20:50 +00:00
parent 92b7f7daff
commit 03456ea341
4 changed files with 2 additions and 19 deletions

View File

@@ -126,21 +126,12 @@ txt_backsp()
int86(DOS_EXT_FUNC, &regs, &regs); int86(DOS_EXT_FUNC, &regs, &regs);
txt_xputc(' ',attrib_text_normal);
regs.h.dl = 0x01; /* one column */
regs.h.ah = CURSOR_LEFT;
regs.h.cl = DIRECT_CON_IO;
(void) int86(DOS_EXT_FUNC, &regs, &regs);
# else # else
int col,row; int col,row;
txt_get_cursor(&col, &row); txt_get_cursor(&col, &row);
if (col > 0) col = col-1; if (col > 0) col = col-1;
txt_gotoxy(col,row); txt_gotoxy(col,row);
txt_xputc(' ',attrib_text_normal);
txt_gotoxy(col,row);
# endif # endif
} }

View File

@@ -228,8 +228,6 @@ vga_backsp()
if (col > 0) col = col-1; if (col > 0) col = col-1;
vga_gotoloc(col,row); vga_gotoloc(col,row);
vga_xputc(' ',g_attribute);
vga_gotoloc(col,row);
} }
# endif /* OVLB */ # endif /* OVLB */

View File

@@ -6,7 +6,7 @@
#ifdef TTY_GRAPHICS #ifdef TTY_GRAPHICS
#if !defined(MSDOS) && !defined(MAC) #if !defined(MAC)
#define NEWAUTOCOMP #define NEWAUTOCOMP
#endif #endif

View File

@@ -686,17 +686,11 @@ tty_askname()
if(ct) { if(ct) {
ct--; ct--;
#if defined(MICRO) || defined(WIN32CON) #if defined(MICRO) || defined(WIN32CON)
# if defined(WIN32CON) # if defined(WIN32CON) || defined(MSDOS)
backsp(); /* \b is visible on NT */ backsp(); /* \b is visible on NT */
(void) putchar(' '); (void) putchar(' ');
backsp(); backsp();
# else # else
# if defined(MSDOS)
if (iflags.grmode) {
backsp();
} else
# endif
msmsg("\b \b"); msmsg("\b \b");
# endif # endif
#else #else