How to print unicode characters (no library)?
Era Scarecrow
rtcvb32 at yahoo.com
Mon Dec 27 21:38:03 UTC 2021
On Monday, 27 December 2021 at 07:12:24 UTC, rempas wrote:
> On Sunday, 26 December 2021 at 21:22:42 UTC, Adam Ruppe wrote:
>> write just transfers a sequence of bytes. It doesn't know nor
>> care what they represent - that's for the receiving end to
>> figure out.
>>
> Oh, so it was as I expected :P
Well to add functionality with say ANSI you entered an escape
code and then stuff like offset, color, effect, etc. UTF-8
automatically has escape codes being anything 128 or over, so as
long as the terminal understand it, it should be what's handling
it.
https://www.robvanderwoude.com/ansi.php
In the end it's all just a binary string of 1's and 0's.
More information about the Digitalmars-d-learn
mailing list