Hmmm, thanks. I might make use of that, or hack in something similar once I have the project open again.

On 28 Dec 2025, at 14:01, Rui Carmo <[email protected]> wrote:


Hi there!

Well, I just used the default C compiler (which in Tahoe I believe is clang—not completely sure as I am on my iPad now), and I don’t use Zig on the Mac (or anywhere else now, I think), so I can’t really validate those patches. I don’t recall any relevant warnings, but I also didn’t want to go over the entire code base…

On 27 Dec 2025, at 03:57, ron minnich <[email protected]> wrote:


as usual, on mac, the path did not run smooth. 

I'm attaching the two commits I made to your changes to get it to build. The problems I hit (all OSX problems) were so strange -- "you don't want to know"

They're nasty hacks, I think you can make them better, I just wanted to give you a look at what I had to do. 

Just doing a straight build got me strange errors a the link step that looked like library corruption, OR a bad binary architecture ID -- not sure.

apologies in advance for this not very nice 2 patches.

note that I used zig cc -- it just works better for me.

The -fno-sanitize=undefined is needed because there are lots of little bits of code in drawterm that do things that are no longer freely accepted, e.g.
arithmetic on null pointer in qstrfmt and
ulong = (int << 24)
which expressions that arive from:
ulong = (uchar << 24) 
uchar is promoted to int, << 24 on int is not defined behavior.

There are also lots of gcc-isms in the code around struct member init, which maybe ought to be fixed.

These problems are in the original as well.

Finally, I have to try to remember a plan 9 host I can log into :-)
Thanks, Rui, I can already see your drawterm is way better that the standard one on my mac. I hope your changes get upstream.

On Thu, Dec 18, 2025 at 5:52 AM Rui Carmo <[email protected]> wrote:
A quick heads up that I tried using drawterm on a modern Mac and was sorely miffed that I couldn’t adjust pixel density/scaling (and hence font size, which on modern displays appears as if scaled for ants), so I forked it in mild but controlled anger and bewilderment and did some patching:



Take it with the usual “works for me” disclaimer.

Thanks,

R.
<0002-scripts-for-using-ZIG.patch>
<0001-fix-makefiles-for-zig-cc.patch>

Reply via email to