Skip to content
Snippets Groups Projects
Commit 4df2ae8f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Move the line_delay logic so it has effect on PETSCII terminals too

Fix issue #759
parent cb4eddcb
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6432 passed
...@@ -727,6 +727,8 @@ int sbbs_t::outchar(char ch) ...@@ -727,6 +727,8 @@ int sbbs_t::outchar(char ch)
outcom(TELNET_IAC); /* Must escape Telnet IAC char (255) */ outcom(TELNET_IAC); /* Must escape Telnet IAC char (255) */
if(ch == '\r' && (console&CON_CR_CLREOL)) if(ch == '\r' && (console&CON_CR_CLREOL))
cleartoeol(); cleartoeol();
if(ch == '\n' && line_delay)
SLEEP(line_delay);
if(term&PETSCII) { if(term&PETSCII) {
uchar pet = cp437_to_petscii(ch); uchar pet = cp437_to_petscii(ch);
if(pet == PETSCII_SOLID) if(pet == PETSCII_SOLID)
...@@ -739,11 +741,8 @@ int sbbs_t::outchar(char ch) ...@@ -739,11 +741,8 @@ int sbbs_t::outchar(char ch)
} else { } else {
if(utf8[0] != 0) if(utf8[0] != 0)
putcom(utf8); putcom(utf8);
else { else
if(ch == '\n' && line_delay)
SLEEP(line_delay);
outcom(ch); outcom(ch);
}
} }
} }
if(outchar_esc == ansiState_none) { if(outchar_esc == ansiState_none) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment