RE: https://mastodon.world/@gamesthatwerent/116869246779222960
@spacehobo something for the Open Mailbox!
New video for Patrons: Let's Code MS DOS 0x38: Huge Pointers in Turbo C
In MS DOS you can only access up to one Megabyte of memory easily, on an original PC or XT. This memory in turn is segmented, so accessing more than 64K at a time becomes a bit more tricky. This is why languages like Turbo C and Pascal introduced near and far pointers to the programmer. However there are also huge pointers, which we will investigate in this episode.
If anyone wants to print with #emacs under recent #macos releases:
1. Install ghostscript via "brew install ghostscript"
2. Put the following script into your $PATH and put (setq ps-lpr-command "lpr-ps") into your init.el
#!/bin/bash
uuid=$(uuidgen)
gs -sDEVICE=pdfwrite \
-sPAPERSIZE=a4 \
-dFIXEDMEDIA \
-dPDFFitPage \
-dCompatibilityLevel=1.4 \
-o "${TMPDIR}/${uuid}".pdf - && open "${TMPDIR}/${uuid}".pdf && sleep 1 && rm "${TMPDIR}/${uuid}".pdf