This repository has no description

terminal: handle CRLF line endings in rgb.txt parsing master

The X11 color map parser in x11_color.zig uses @embedFile to load rgb.txt at comptime, then splits on \n. On Windows, git may check out rgb.txt with CRLF line endings, leaving a trailing \r on each line. This caused color names to be stored as e.g. "white\r" instead of "white", so all X11 color lookups failed at runtime. Strip trailing \r from each line before parsing. Also mark rgb.txt as -text in .gitattributes to prevent line ending conversion in future checkouts.


Author Mitchell Hashimoto Date Commit e95fdd2f Parent d568ce9c Change ID zulqwwyk
+9 -2
2 changed files