Something went wrong. Try again.
Ghostty for the web with xterm.js API compatibility
Something went wrong. Try again.
461 B · 21 lines
Zig
at init
12345678910111213141516171819202122const std = @import("std");
// Simple test functionexport fn add(a: i32, b: i32) i32 { return a + b;}
// Simple ANSI parser - just detect ESC sequencesexport fn isEscape(byte: u8) bool { return byte == 0x1B;}
// Check if byte is in CSI param rangeexport fn isCSIByte(byte: u8) bool { return (byte >= 0x30 and byte <= 0x3F);}
// Check if byte is CSI finalexport fn isCSIFinal(byte: u8) bool { return (byte >= 0x40 and byte <= 0x7E);}