Code:
DEFSTR S DEFINT I ' FOR I = 1 TO 129 S1 = S1 + "S" NEXT ' FOR I = 1 TO 78 S2 = S2 + "S" NEXT ' SCREEN 0, 1 ' COLOR 9, 0, 0 PRINT "Current file: "; COLOR 12, 0, 0 PRINT S1 ' PRINT "" ' COLOR 9, 0, 0 PRINT "Current file: "; COLOR 12, 0, 0 PRINT S2 ' END(0)
"Current file: ", and the line wraps to the next line.
However, S2 is printed on the line AFTER its "Current file: ".
I discovered this phenomenon when I was using my wrapper EXE
to decode MP3's, and one of the MP3 path names was 78 chars
in length.
MY fix was quite easy - use ANSI coding for the colors, using
STDOUT. I always have ANSI.SYS loaded, because of my DOS BBS.
However, other programmers might not be so fortunate.
This test code, and my actual EXE, are run from a full screen DOS box.
------------------
Clay C. Clear
mailto:[email protected][email protected]</A>
[This message has been edited by Clay Clear (edited August 06, 2002).]
Comment