Hello everybody !
My question as always is trivial:
How can I determine the characteristics
of a remote terminal from within C program,
say, under UNIX ? In particular I'm interested
in getting the size of the screen (number of rows
and columns). Formerly I used to determine the
terminal by sending control sequences
like e.g. "\033[c" or "\033[>c" and read the response
which worked fine for VT-series stuff, but it
didn't give size of the screen. Hmmm, curses
give the right answer only for the local terminal,
but give only default 24x80 (or 65x80) size for remote (say,
the one under telnet). On the other hand I saw several
times when some remote applications printed something
"reading your environment..."
meaning apparently that they were able to
determine "my environment". Is there any answer ?