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
Branches
Tags
1 merge request!455Update branch with changes from master
Pipeline #6432 passed
......@@ -727,6 +727,8 @@ int sbbs_t::outchar(char ch)
outcom(TELNET_IAC); /* Must escape Telnet IAC char (255) */
if(ch == '\r' && (console&CON_CR_CLREOL))
cleartoeol();
if(ch == '\n' && line_delay)
SLEEP(line_delay);
if(term&PETSCII) {
uchar pet = cp437_to_petscii(ch);
if(pet == PETSCII_SOLID)
......@@ -739,11 +741,8 @@ int sbbs_t::outchar(char ch)
} else {
if(utf8[0] != 0)
putcom(utf8);
else {
if(ch == '\n' && line_delay)
SLEEP(line_delay);
else
outcom(ch);
}
}
}
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