Closed jedimatt42 closed 6 years ago
Ok, I don't know what I did... but this is currently not a real issue..
I added this code to testlib.c so I could see what I thought I expected, which was early wrapping of the characters in the string.
clrscr();
gotoxy(0,2);
cputs("Expected");
gotoxy(0,0);
chline(40);
gotoxy(0,1);
cputs("<");
gotoxy(39,1);
cputs(">");
gotoxy(0,3);
cgetc();
But there is no evidence of that, with or without my suggested change to the cputc wrapping condition.
-M@
https://github.com/tursilion/libti99/blob/5900e89352e327f526bbfa5796b2f842c2c529c3/conio_cputc.c#L20
I think changing the <= to < fixes it here.
with ipaddress a string equal to "???.???.???.???", a 15 character string, the following code ends up wrapping the last ? to the next line. But I can clearly see the chline(40) can place a '-' in column 39.
The example code: