summaryrefslogtreecommitdiff
path: root/src/terminfo/Source.zig
AgeCommit message (Collapse)Author
2025-10-03ci: cleanupMitchell Hashimoto
2025-10-03Zig 0.15: zig build GTK exeMitchell Hashimoto
2025-10-03Zig 0.15: zig build test Mitchell Hashimoto
2025-05-27code style: use `@splat` where possibleQwerasd
As of Zig 0.14.0, `@splat` can be used for array types, which eliminates a lot of redundant syntax and makes things generally cleaner. I've explicitly avoided applying this change in the renderer files for now since it would just create rebasing conflicts in my renderer rework branch which I'll be PR-ing pretty soon.
2025-03-12testMitchell Hashimoto
2025-03-11Zig 0.14Mitchell Hashimoto
2024-06-24Fix some basic build errors.Gordon Cassie
2024-06-240.13 conversionsMitchell Hashimoto
2024-04-21terminfo: reset kbs back to ^?, clear high bit for encodingMitchell Hashimoto
2024-04-20terminfo: for XTGETTCAP, non-parameterized string values return encodedMitchell Hashimoto
Fixes #1699 See #1699 for a lot more research. I haven't found a definitive source of this behavior but this appears to match most of the mainstream terminals and xterm for the realistic terminfo entries we have and I'm going to consider that good enough. For non-parameterized string values in a terminfo, the XTGETTCAP result should be the tcap encoded form. This means replacing characters such as `\E` with their byte form of 0x1B, and control characters such as `^H` with their actual character 0x08, and so on. "Non-parameterized" is a bit weird, the comment in this commit explains my best guess (thanks to some community help) of why this may be. This commit does NOT handle all encodings, but it handles the encodings we use and the encodings I could cross-check with other terminals. The actual tcap encoding is much more complicated and I'm sure for specific types of terminfo values our encoding is not correct. If and when those come up we should fix them.
2024-04-17fix more comptime var leaksMitchell Hashimoto
2023-09-27terminfo: numeric comptime buffer only needs to be 10 bytesMitchell Hashimoto
2023-09-27terminfo: xtgettcap map name should use the source nameMitchell Hashimoto
2023-09-27terminfo: comptime map for xtgettcap resultsMitchell Hashimoto
2023-06-23terminfo: basic Source structure and can encodeMitchell Hashimoto