J
Jon Gómez
Thomas Kellerer wrote:
[...]
I checked on my system: LINES and COLUMNS are shell variables, and they
are not part of the environment. However, TERM presumably is, if it is
set. Martin Gregorie brought up the possibility of looking into
terminfo and termcap stuff, in the context of a library he thought might
help do that for you. I checked, and the library doesn't, but the idea
is still valid.
Jon.
[...]
[...]I tried to retrieve the screen size from within a shell script because
interactively $LINES and $COLUMNS are available (echo $LINES shows the
correct value) but when trying to retrieve them using System.getenv() it
returns null.
I checked on my system: LINES and COLUMNS are shell variables, and they
are not part of the environment. However, TERM presumably is, if it is
set. Martin Gregorie brought up the possibility of looking into
terminfo and termcap stuff, in the context of a library he thought might
help do that for you. I checked, and the library doesn't, but the idea
is still valid.
Jon.