#include "hackterm.h" #include "pscreen.h" /* send data to attached printer */ bool PSprint(const char *buf,int len) { if (prtr_non) { putp(tparm(prtr_non,len)); while (len--) _outchar(*buf++); return TRUE; } if (prtr_on) { putp(prtr_on); while (len--) _outchar(*buf++); putp(prtr_off); return TRUE; } return FALSE; }