Skip to content
Snippets Groups Projects
Commit 3f976f6f authored by rswindell's avatar rswindell
Browse files

Replaced YIELDs with inkey() timeout values.

parent 6c5fe6b6
No related branches found
No related tags found
No related merge requests found
......@@ -103,9 +103,8 @@ void sbbs_t::ansi_getlines()
&& online==ON_REMOTE) { /* Remote */
SYNC;
putcom("\x1b[s\x1b[99B\x1b[6n\x1b[u");
while(online && !rioctl(RXBC))
YIELD();
inkey(0); }
inkey(TIMEOUT_ANSI_GETXY*1000);
}
}
void sbbs_t::ansi_getxy(int* x, int* y)
......@@ -120,7 +119,7 @@ void sbbs_t::ansi_getxy(int* x, int* y)
time_t start=time(NULL);
sys_status&=~SS_ABORT;
while(online && !(sys_status&SS_ABORT)) {
if((ch=incom())!=NOINP) {
if((ch=incom(1000))!=NOINP) {
if(ch==ESC && rsp==0) {
rsp++;
start=time(NULL);
......@@ -152,6 +151,5 @@ void sbbs_t::ansi_getxy(int* x, int* y)
lprintf("Node %d !TIMEOUT in ansi_getxy", cfg.node_num);
break;
}
YIELD();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment