Results 215 comments of Tavis Ormandy

Ah, the bug is that UNIX `system()` returns the result, but Linux `system()` returns the wait status, and 1-2-3 doesn't know that. Hmm, on the one hand It's easy to...

Thanks, this is fun! I wonder if I can just automate it though, if TERM=vt320, can I just send those strings in main() and it will work?

Untested, but I'm thinking of something like this in main()? ```c if (strcmp(getenv("TERM"), "vt320") == 0) { setenv("TERM, "vt100", 1); fwrite(""\eP1;1;1|33/1b5b363b357e\e\\", xx, 1, stdout); } ```

The patch looks good to me! I copied your note to the wiki too: https://github.com/taviso/123elf/wiki/Terminals I've noticed there is a built-in keymap called "vtxxx", but I don't know what it...

Confirmed - I think it's trying to open a driver, so we should provide one that just grabs the postscript and then we can just pass it to cups or...

Oh - it's actually really easy to get Print to file to work, that's a one line change. I'll do that for now and work on the printer driver later.

You know you're doing something interesting when you crash the linker 😄 I notice you said 2.37 and not 2.38 - is it possible this is already fixed?

I think maybe `fwrite()` should be localized, that way it can do whatever it wants to the `FILE` structure, but eventually when it needs to use `write()` *that* can be...

(I did the same thing as you to figure out the structure, looked at the disassembly and googled for old header files!)

Yeah, not great right now, I can't even use £ lol. I looked at the code a bit today, I think I can make a few improvements easily, some might...