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:
>
> https://github.com/rcarmo/drawterm
>
>
> https://github.com/rcarmo/drawterm/commit/0b5788f3601f6d5bd28c70519b4f4605f8e551d9#diff-e4e63e048e3749f2de0f385f6355ffc1a0f79254a740477abc8b40eac9d794b2
>
> Take it with the usual “works for me” disclaimer.
>
> Thanks,
>
> R.
> *9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions
> <https://9fans.topicbox.com/groups/9fans> + participants
> <https://9fans.topicbox.com/groups/9fans/members> + delivery options
> <https://9fans.topicbox.com/groups/9fans/subscription> Permalink
> <https://9fans.topicbox.com/groups/9fans/T199d5de5c52dd71b-M886e8404ce44dc093d312b6a>
>

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T199d5de5c52dd71b-M0dbd0a65ae3616709adb127c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Attachment: 0002-scripts-for-using-ZIG.patch
Description: Binary data

Attachment: 0001-fix-makefiles-for-zig-cc.patch
Description: Binary data

Reply via email to