Differences From Artifact [2edbd17f16]:
- File src/OFStdIOStream.m — part of check-in [7413a728a7] at 2024-04-03 02:16:03 on branch trunk — Change license to LGPLv3 only (user: js, size: 13579) [annotate] [blame] [check-ins using] [more...]
To Artifact [4854e57444]:
- File
src/OFStdIOStream.m
— part of check-in
[1c2fe75e6e]
at
2024-05-05 19:04:03
on branch trunk
— OFStdIOStream: Add special case for column 0
Use "\r" instead of the ANSI escape code if the column is 0.
This fixes the output of the tests on 3DS. (user: js, size: 13633) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
641 642 643 644 645 646 647 | { if (!self.hasTerminal) return; #ifdef OF_MSDOS gotoxy(column + 1, wherey()); #else | > > > | | 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 | { if (!self.hasTerminal) return; #ifdef OF_MSDOS gotoxy(column + 1, wherey()); #else if (column == 0) [self writeString: @"\r"]; else [self writeFormat: @"\033[%uG", column + 1]; #endif } - (void)setCursorPosition: (OFPoint)position { if (position.x < 0 || position.y < 0) @throw [OFInvalidArgumentException exception]; |
︙ | ︙ |