[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Stairs effect on MiNT console
On 02/01/2013 21:13, Jo Even Skarstein wrote:
I guess it's not the terminal that's the problem here, but the programs
that outputs text with missing CR's to a VT52 terminal.
True. And the problem comes from the MiNTLib.
The following instruction:
printf("Line1\nLine2\n");
is supposed to display the following on every system:
Line1
Line2
When I run such program on plain TOS, it displays the right thing. This
is fine. Same with FreeMiNT+XaAES+TosWin2 if the program is named .tos.
But when the same program is renamed .prg and run from XaAES (whether or
not the TosWin2 Console is opened), there is the stairs effect. This is
wrong.
So when MiNT is present, the MiNTLib does not correctly detect that
stdout is actually redirected to the VT52 console, and does not insert
the missing CR where expected.
This is a MiNTLib bug and I'm going to investigate it.
--
Vincent Rivière