ObjFW  Check-in [303014c878]

Overview
Comment:OFStdIOStream: Fix some colors on 3DS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 303014c8783441a79367444074583822200695d9f21417efc6a49bb4a534a61d
User & Date: js on 2024-05-19 00:06:21
Other Links: manifest | tags
Context
2024-05-20
04:21
OFStdIOStream: Remove color hack for 3DS again check-in: 7632d098d4 user: js tags: trunk
03:59
OTAppDelegate: Simplify color fallback check-in: 95aa3ed839 user: js tags: trunk
2024-05-19
00:06
Merge trunk into branch "gamecontroller" check-in: a13251499a user: js tags: gamecontroller
00:06
OFStdIOStream: Fix some colors on 3DS check-in: 303014c878 user: js tags: trunk
2024-05-13
22:03
Clean up ObjFWTest Makefile check-in: 7c0575d78f user: js tags: trunk
Changes

Modified src/OFStdIOStream.m from [4854e57444] to [eed361108a].

569
570
571
572
573
574
575






576

577
578
579
580
581
582
583
		return;

	textcolor(code);
#else
	if ((code = colorToANSI(color)) == -1)
		return;







	[self writeFormat: @"\033[%um", code];

#endif
}

- (void)setBackgroundColor: (OFColor *)color
{
	int code;








>
>
>
>
>
>

>







569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
		return;

	textcolor(code);
#else
	if ((code = colorToANSI(color)) == -1)
		return;

# ifdef OF_NINTENDO_3DS
	if (code >= 90)
		[self writeFormat: @"\033[1;%um", code - 60];
	else
		[self writeFormat: @"\033[0;%um", code];
# else
	[self writeFormat: @"\033[%um", code];
# endif
#endif
}

- (void)setBackgroundColor: (OFColor *)color
{
	int code;