ziglibs / ansi-term

Zig library for dealing with ANSI terminals
MIT License
68 stars 7 forks source link

Return error if escape codes are not supported by writer #35

Closed tiawl closed 3 months ago

tiawl commented 3 months ago

Hi,

As stated by its title, this PR is simple: I just added a simple check on the writer before writing anything.

Thank you for sharing this simple but awesome lib.

tiawl commented 3 months ago

I am closing this PR, the supportsAnsiEscapeCodes is a std.fs.File method. Not a writer method. My bad: I misread the documentation