diff --git a/sys/winnt/nttty.c b/sys/winnt/nttty.c index abc5597c3..e73bb4eb5 100644 --- a/sys/winnt/nttty.c +++ b/sys/winnt/nttty.c @@ -625,8 +625,6 @@ home() void backsp() { - DWORD count; - GetConsoleScreenBufferInfo(hConOut,&csbi); if (csbi.dwCursorPosition.X > 0) ntcoord.X = csbi.dwCursorPosition.X-1; @@ -638,8 +636,6 @@ backsp() (currentcolor|currenthilite|currentbackground)); colorchange = FALSE; } - WriteConsole(hConOut," ",1,&count,0); - SetConsoleCursorPosition(hConOut,ntcoord); } void diff --git a/win/tty/getline.c b/win/tty/getline.c index cd0dae225..fded0d3b4 100644 --- a/win/tty/getline.c +++ b/win/tty/getline.c @@ -6,6 +6,10 @@ #ifdef TTY_GRAPHICS +#if !defined(MSDOS) && !defined(MAC) +#define NEWAUTOCOMP +#endif + #include "wintty.h" #include "func_tab.h" diff --git a/win/tty/wintty.c b/win/tty/wintty.c index a08028887..ce9311e50 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -688,6 +688,8 @@ tty_askname() #if defined(MICRO) || defined(WIN32CON) # if defined(WIN32CON) backsp(); /* \b is visible on NT */ + (void) putchar(' '); + backsp(); # else # if defined(MSDOS) if (iflags.grmode) {