From owner-freebsd-ports Mon Nov 8 0:50: 7 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 26A1F1518E for ; Mon, 8 Nov 1999 00:50:00 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA57016; Mon, 8 Nov 1999 00:50:00 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 0BF8314D51; Mon, 8 Nov 1999 00:44:16 -0800 (PST) Message-Id: <19991108084416.0BF8314D51@hub.freebsd.org> Date: Mon, 8 Nov 1999 00:44:16 -0800 (PST) From: jml@cubical.fi To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: ports/14784: uemacs-4.0 does not respect LINES and COLUMNS env Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 14784 >Category: ports >Synopsis: uemacs-4.0 does not respect LINES and COLUMNS env >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 8 00:50:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Juha Liukkonen >Release: 3.3-RELEASE >Organization: Cubical Solutions Ltd >Environment: FreeBSD snafu.intra.net 3.3-RELEASE FreeBSD 3.3-RELEASE #12: Fri Nov 5 00:50:24 EET 1999 jml@snafu.intra.net:/usr/src/sys/compile/SNAFU i386 >Description: Microemacs always reads the li and co capabilities from termcap and does not respect the LINES and COLUMNS environment settings, which are almost always more correct than the termcap entries for dummy terminals (vt100 and clones). >How-To-Repeat: xterm to a bsd box using >24 line window, echo $LINES, observe line count being >24, setenv TERM vt100. Start uemacs, observe only 24 lines being used. >Fix: After/instead reading li and co from termcap, check LINES and COLUMNS from the environment and if set, sscanf values to term.t_nrow and term.t_ncol (src/unix.c, around line 819; note that t_nrow=LINES-1). >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message