htop not working. #1
Comments
Huh! That must be because I don't pass |
This is correct, I tried this, setting the env to something like const env = [_:null]?[*:0]u8{ "TERM=xterm", null }; makes |
@sschneemelcher Awesome, thanks! 🎉 Note to self (TODO): either pass env to forked process or at least add a comment so others can try it out, then update article and/or readme as needed. |
ping:) |
Okay, so I took a look at this today. The Zig stdlib has https://github.com/ziglang/zig/blob/1653a9b2597c66cbcc88ea75d8a4b88c163584a5/lib/std/os.zig#L239
That Passing it anyway gives me this:
Which is no surprise. I'm not sure that it would be possible to "add" a null termination to the array through casting alone. It seems like we would need to allocate space and copy the whole environment array in order to add the null termination? I'd love to not have to do that! I also found
which feels like serious overkill! |
just say:
The text was updated successfully, but these errors were encountered: