C Collection of code snippets by Arne Vajhøj 
C (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
      PROGRAM TERM_SIZE
      INCLUDE '($DVIDEF)'
      INTEGER*4 PW,PL
      CALL LIB$GETDVI(DVI$_DEVBUFSIZ,,'TT',PW,,)
      CALL LIB$GETDVI(DVI$_TT_PAGE,,'TT',PL,,)
      WRITE(*,*) PW,PL
      END
