From d253a3182859c7c989449122a60d5f362f19ded0 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 9 Nov 2021 08:12:11 -0800 Subject: rename grapheme to code-point-utf8 Longer name, but it doesn't lie. We have no data structure right now for combining multiple code points. And it makes no sense for the notion of a grapheme to conflate its Unicode encoding. --- 500fake-screen.mu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '500fake-screen.mu') diff --git a/500fake-screen.mu b/500fake-screen.mu index c34beeaa..f86ce47c 100644 --- a/500fake-screen.mu +++ b/500fake-screen.mu @@ -71,7 +71,7 @@ fn initialize-screen _screen: (addr screen), width: int, height: int, pixel-grap copy-to *dest, 0 } -# in graphemes +# in code-point-utf8s fn screen-size _screen: (addr screen) -> _/eax: int, _/ecx: int { var screen/esi: (addr screen) <- copy _screen var width/eax: int <- copy 0 @@ -459,7 +459,7 @@ fn clear-rect _screen: (addr screen), xmin: int, ymin: int, xmax: int, ymax: int set-cursor-position screen, 0, 0 } -# there's no grapheme that guarantees to cover every pixel, so we'll bump down +# there's no code-point-utf8 that guarantees to cover every pixel, so we'll bump down # to pixels for a real screen fn clear-real-screen { var y/eax: int <- copy 0 -- cgit 1.4.1-2-gfad0