<div dir="ltr">Great, last question. Is the environment variable COLUMNS the # of columns or the width of the terminal window? My terminal doesn&#39;t set that env variable so I can set it manually to test but not sure what the usage normally is.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Oct 5, 2013 at 5:18 PM, Jan Schaumann <span dir="ltr">&lt;<a href="mailto:jschauma@stevens.edu" target="_blank">jschauma@stevens.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Tejas Nadkarni &lt;<a href="mailto:tnadkarn@stevens.edu">tnadkarn@stevens.edu</a>&gt; wrote:<br>
&gt; Ok I&#39;m currently reading the terminal window size so it changes as the user<br>
&gt; modifies the window size. Should I change that to only read the environment<br>
&gt; variable?<br>
<br>
</div>The environment variable should change when your terminal window<br>
changes, so using the variable would work in both cases.  Using the<br>
terminal window size as a fallback in case the environment variable is<br>
bogus or unset would be a good idea.<br>
<div class="HOEnZb"><div class="h5"><br>
-Jan<br>
_______________________________________________<br>
cs631apue mailing list<br>
<a href="mailto:cs631apue@lists.stevens.edu">cs631apue@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs631apue" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs631apue</a><br>
</div></div></blockquote></div><br></div>