Skip to content
Snippets Groups Projects
Commit 83d17c63 authored by rswindell's avatar rswindell
Browse files

putmsg() now converts LF to CR/LF (for Unix text file compatibility).

parent 17bbefce
No related branches found
No related tags found
No related merge requests found
...@@ -196,8 +196,13 @@ char sbbs_t::putmsg(char HUGE16 *str, long mode) ...@@ -196,8 +196,13 @@ char sbbs_t::putmsg(char HUGE16 *str, long mode)
break; } break; }
l+=2; } l+=2; }
else { else {
if(exatr && str[l]==LF) /* clear at newline for extra attr codes */ if(str[l]==LF) {
if(exatr) /* clear at newline for extra attr codes */
attr(LIGHTGRAY); attr(LIGHTGRAY);
if(l && str[l-1]!=CR) /* convert sole LF to CR/LF */
outchar(CR);
}
/* ansi escape sequence */ /* ansi escape sequence */
if(outchar_esc) { if(outchar_esc) {
if(str[l]=='A' || str[l]=='B' || str[l]=='H' || str[l]=='J' if(str[l]=='A' || str[l]=='B' || str[l]=='H' || str[l]=='J'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment