Hacking around with RISC OS cawf again...
A thing about cawf that annoys me (iirc was inherited from nroff) is that it uses the TERM environment variable to select a printer specific init file, but also wants the -d device option to select the specific printer.
This is very annoying under modern UNIX, as TERM is often rather more complex than just "ansi" or whatever.
But RISC OS uses the hell out of environment variables! So now cawf looks for CAWF$TERM like a proper RO app!