Sorry Thaddy, I feel I'm being really dumb here.
I tried Screen, not recognised. Searched online for TScreen, found the Free Pascal page. This made a reference to package x11. A search online found a lot of references, but none directly useful, though they mentioned various other names, including xlib and xauth. A search in the Lazarus package lists did not mention x11, xlib, xauth, etc.
In the Free Pascal page on x11, they gave a demo, that used the units xlib, x, ctypes. I put those in direct, only ctypes was recognised.
It seems like what I am trying to do, i.e. just get the current width of the console (terminal, DOS window), should be incredibly easy, but given how many people read this, you have been the only one to reply. I know I didn't word it very well, but I would have thought someone MUST have done that.
I think unless you can put me out of misery and tell what I am missing (beside a huge number of brain cells), I will leave this for a while and maybe repost a simplified version (if that is possible for me) in the beginners section. For now I am just focussing on doing the file output of my ‘simple’ util, that is to show a data file in byte form (a bit like a hex editor), that bit was easy, oh the irony.
Phil