[RndTbl] Another Solaris configuration issue - xterm

Adam Thompson athompso at athompso.net
Mon Dec 15 11:10:00 CST 2014


On 14-12-15 10:54 AM, Adam Thompson wrote:
> Nowadays, it should be reasonably safe to put this in /etc/profile:
>
>     eval $(/usr/bin/resize) && stty cols $COLUMNS rows $LINES

Er... make that:
     eval $(/local/path/to/resize) && [ -n "${COLUMNS}" -a "${COLUMNS}" 
-gt 0 -a -n "${LINES}" -a "${LINES}" -gt 0 ] && stty cols "${COLUMNS}" 
rows "${LINES}"

Technically, stty accepts zero as a valid argument, but doing so would 
be useless.

-- 
-Adam Thompson
  athompso at athompso.net
  Cell: +1 204 291-7950
  Fax: +1 204 489-6515



More information about the Roundtable mailing list