ObjFW  Check-in [7632d098d4]

Overview
Comment:OFStdIOStream: Remove color hack for 3DS again
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7632d098d4345a5a888bb1af5c2b5b12edd151a3aaf3585d7565f6c5e7650f96
User & Date: js on 2024-05-20 04:21:44
Other Links: manifest | tags
Context
2024-05-20
17:21
Add ObjFWHID subframework with OFGameController check-in: d901707b57 user: js tags: trunk
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
OFStdIOStream: Fix some colors on 3DS check-in: 303014c878 user: js tags: trunk
Changes

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

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;








<
<
<
<
<
<

<







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;