From nobody Tue Oct 31 22:45:23 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SKlbM0G8Mz4y2Jw for ; Tue, 31 Oct 2023 22:45:35 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:7400:8808:123::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4SKlbK0Mnvz4cFM; Tue, 31 Oct 2023 22:45:32 +0000 (UTC) (envelope-from jamie@catflap.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of jamie@catflap.org designates 2001:19f0:7400:8808:123::1 as permitted sender) smtp.mailfrom=jamie@catflap.org; dmarc=pass (policy=none) header.from=catflap.org X-Catflap-Envelope-From: X-Catflap-Envelope-To: bapt@freebsd.org Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [209.250.224.51]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 39VMjNus080966; Tue, 31 Oct 2023 22:45:23 GMT (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 39VMjNJB080965; Tue, 31 Oct 2023 22:45:23 GMT (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202310312245.39VMjNJB080965@donotpassgo.dyslexicfish.net> Date: Tue, 31 Oct 2023 22:45:23 +0000 Organization: Dyslexic Fish To: bapt@freebsd.org, freebsd-current@freebsd.org Subject: Freebsd 14+ -- tcsh incompatible with terminfo User-Agent: Heirloom mailx 12.4 7/29/08 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [209.250.224.51]); Tue, 31 Oct 2023 22:45:23 +0000 (GMT) X-Spamd-Result: default: False [0.25 / 15.00]; NEURAL_SPAM_LONG(0.96)[0.958]; DMARC_POLICY_ALLOW(-0.50)[catflap.org,none]; NEURAL_HAM_MEDIUM(-0.20)[-0.202]; R_SPF_ALLOW(-0.20)[+mx:dyslexicfish.net]; NEURAL_SPAM_SHORT(0.19)[0.193]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; BLOCKLISTDE_FAIL(0.00)[209.250.224.51:server fail,2001:19f0:7400:8808:123::1:server fail]; ASN(0.00)[asn:20473, ipnet:2001:19f0:7400::/38, country:US]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[jamie]; RCPT_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4SKlbK0Mnvz4cFM X-Spamd-Bar: / Hi! The changes to FreeBSD base ncurses to use the terminfo db over termcap if it exists have caused a few issues with tcsh, which doesn't seem to grok terminfo. e.g. : install misc-terminfo switch to tcsh, and reinitialise terminal information: % setenv TERM dumb % setenv TERM xterm % echotc AF 1 echotc: `AF' requires 2 arguments. Deleting the relevent terminfo entry, and reinitialising the terminal information causes everything to work again. Tested on stock 14.0-RC3 I have some other locally grown stuff that complains for similar reasons, that I'll have to fix too, but in the meantime, what's the easiest way to force any program to use termcap over terminfo rather than the other way around, or is this the wrong approach? I considered kludging with environment variables TERMINFO/TERMCAP, but these are login based rather than program based, and if instead set inside a program, could cause spawned programs to also be polluted, if not careful, especially with a shell. Cheers, Jamie