[cs631apue] Fwd: Some questions on midterm....
Jan Schaumann
jschauma at stevens.edu
Sat Oct 5 17:18:29 EDT 2013
Tejas Nadkarni <tnadkarn at stevens.edu> wrote:
> Ok I'm currently reading the terminal window size so it changes as the user
> modifies the window size. Should I change that to only read the environment
> variable?
The environment variable should change when your terminal window
changes, so using the variable would work in both cases. Using the
terminal window size as a fallback in case the environment variable is
bogus or unset would be a good idea.
-Jan
More information about the cs631apue
mailing list