Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!news.cs.indiana.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!jbn35564 From: jbn35564@uxa.cso.uiuc.edu (J.B. Nicholson) Newsgroups: comp.mail.elm Subject: Using $LINES before using stty's rows Summary: Why does ELM use $LINES before using stty's rows? Keywords: $LINES stty rows precedence Message-ID: <1991Mar15.230957.10143@ux1.cso.uiuc.edu> Date: 15 Mar 91 23:09:57 GMT Sender: usenet@ux1.cso.uiuc.edu (News) Reply-To: jeffo@uiuc.edu Organization: University of Illinois at Urbana Lines: 16 Why does ELM use $LINES (if $LINES is set to anything) before checking stty's rows setting when determining the the number of lines on a display? I'm using KSH, and according to some people I've talked to, the use of $LINES and $COLUMNS is a "hack" in KSH, and should be avoided. Also, since I am trying to get everything to use the same screen settings, I prefer to set stty with some value and know that every program will check the stty settings before using some variable like $LINES. Jeff -- +----------------------------------------------------------------------------+ | "If you hear an onion ring - answer it." J.B. Nicholson | +----------------------------------------------------------------------------+ | jeffo@uiuc.edu (Internet) These opinions are mine, that's all.| +----------------------------------------------------------------------------+