win32tty changes
1. Switch to low-level console routines for performance improvements. 2. Instead of moving the cursor around like a real tty, just track the destination coordinates of where the cursor should be, and defer the movement until user input is expected. Credit to <Someone> for #2.
This commit is contained in:
@@ -272,15 +272,23 @@ topl_putsym(c)
|
||||
ttyDisplay->curx = 0;
|
||||
ttyDisplay->cury++;
|
||||
cw->cury = ttyDisplay->cury;
|
||||
#ifdef WIN32CON
|
||||
(void) putchar(c);
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
if(ttyDisplay->curx == CO-1)
|
||||
topl_putsym('\n'); /* 1 <= curx <= CO; avoid CO */
|
||||
#ifdef WIN32CON
|
||||
(void) putchar(c);
|
||||
#endif
|
||||
ttyDisplay->curx++;
|
||||
}
|
||||
cw->curx = ttyDisplay->curx;
|
||||
if(cw->curx == 0) cl_end();
|
||||
#ifndef WIN32CON
|
||||
(void) putchar(c);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user